#213D9F#213D9F

#213D9F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.162 H 266.6°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#213D9F
RGBrgb(33, 61, 159)
HSLhsl(227, 66%, 38%)
HSVhsv(227, 79%, 62%)
CMYKcmyk(79.2%, 61.6%, 0%, 37.6%)
CIE-LABlab(29.82, 26.55, -56.06)
CIE-LCHlch(29.82, 62.03, 295.34°)
OKLaboklab(40.51% -0.0097 -0.1621)
OKLCHoklch(40.51% 0.162 266.6)
XYZxyz(8.5518, 6.1630, 33.5330)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#213D9F #9F8321
analogous
#217C9F #213D9F #44219F
triadic
#213D9F #9F213D #3D9F21
tetradic
#213D9F #9F217C #9F8321 #219F44
square
#213D9F #9F217C #9F8321 #219F44
split-complementary
#213D9F #9F4421 #7C9F21
monochromatic
#0C163A #162A6C #213D9F #2C50D2 #5D7ADD

Accessibility & contrast

On white

9.41
#213D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#213D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #213D9F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##213D9F#FFFFFF#000000##FFFFFF
##213D9F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #213d9f;
/* rgb */ color: rgb(33, 61, 159);
/* oklch */ color: oklch(40.5% 0.162 266.6);
Tailwind
colors: {
  custom: {
    50: '#7272bc',
    500: '#213d9f',
    950: '#000000',
  },
}
SCSS
$custom: #213d9f;
$custom-light: #7272bc;
$custom-dark: #000000;
JSON
{
  "hex": "#213d9f",
  "rgb": {
    "r": 33,
    "g": 61,
    "b": 159
  },
  "hsl": {
    "h": 226.667,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40507,
    "c": 0.16237,
    "h": 266.6
  },
  "luminance": 0.06164
}

Semantic roles & 50–950 ramp

primary
#213D9F
secondary
#C2AB5A
accent
#C33FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090712
muted
#7B7A81

Preview Lab

Preview with #213D9F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#213D9F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva