CSS Named Color Reference

Medium Blue Color Code

Medium Blue·#0000CD

Blue FamilyCoolMid toneHigh saturationoklch(38.3% 0.266 264)
HEX
#0000CDPrimary token
RGB
rgb(0, 0, 205)Screen values
HSL
hsl(240 100% 40%)Hue and lightness
CMYK
100, 100, 0, 20Print handoff
LAB
25, 67, -92Perceptual reference
OKLCH
oklch(38.3% 0.266 264)Modern perceptual

Medium Blue is a saturated CSS named blue at #0000CD that lands between Dark Blue and pure Blue. Use it when you want a classic digital blue with slightly less intensity than #0000FF for links, active states, and focused interface accents.

Best text colorWhite text
Body text contrast11.16:1
Best UseClassic digital links, active states, and focused blue accents

Tonal Scale

100#D1D1F6
300#8A8AE8
500#2E2ED6
600#0000CD
800#000094

Contrast Checks

White text on this color

Buttons, badges, and filled actions.

11.16:1AAA-level contrast

Dark text on this color

Large headings and selective UI.

1.54:1Needs more separation

This color on light surface

Links, borders, and icons on light UI.

10.60:1AAA-level contrast
Best text colorWhite textContrast 11.16:1

Professional Reference

OKLCHoklch(38.3% 0.266 264)
Relative Luminance0.0441
Source TypeCSS Named Color
Classification
Blue FamilyCoolMid toneHigh saturation
Source Context
Source Type
CSS Named Color
System
CSS
Closest Matches
Material Deep Purple A700Material Deep Purple A400Tailwind Violet 700

Accessibility Matrix

White text on this color

White text placed on the current color.

11.16:1AAA

Dark text on this color

Dark text or headings on the current color.

1.54:1Needs more separation

This color on light surface

Use this color for links, strokes, or icons on light UI.

10.60:1AAA

This color on dark surface

Use this color inside dark shells for strokes, tags, or icons.

1.54:1Needs more separation
Best text colorWhite textContrast 11.16:1 · AAA

Where It Works

  • Links, active states, and classic digital accents.
  • Less absolute than Blue, brighter than Dark Blue.
  • Pairs with white, charcoal neutrals, and lighter blues.

Reference Notes

Last Updated
2026-06-09
Source Library
CSS Standard Colors
Methodology
Verified source values + site guidance
Color Notes

Medium Blue is sourced from the published CSS Standard Colors library and retained here as a searchable reference swatch for product, interface, and branding work.

Hue Family

Trust-building blues for enterprise and SaaS.

Source Collections
CSS Named Colors

Related Colors

Palette Starting Points

Implementation Snippets

CSS Variables
:root {
  --color-medium-blue: #0000CD;
  --color-medium-blue-rgb: 0 0 205;
}
Utility Class
class="bg-[#0000CD] text-white"
class="hover:bg-[#000094] ring-1 ring-[#0000CD]"
JSON Token
{
  "mediumBlue": "#0000CD",
  "mediumBlueRgb": [0, 0, 205],
  "mediumBlueHsl": [240, 100, 40]
}