#211F8B#211F8B

#211F8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.170 H 272.9°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#211F8B
RGBrgb(33, 31, 139)
HSLhsl(241, 64%, 33%)
HSVhsv(241, 78%, 55%)
CMYKcmyk(76.3%, 77.7%, 0%, 45.5%)
CIE-LABlab(20.70, 38.39, -58.75)
CIE-LCHlch(20.70, 70.18, 303.16°)
OKLaboklab(33.28% 0.0087 -0.17)
OKLCHoklch(33.28% 0.17 272.9)
XYZxyz(5.7758, 3.1668, 24.7279)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F8B #898B1F
analogous
#1F538B #211F8B #571F8B
triadic
#211F8B #8B211F #1F8B21
tetradic
#211F8B #8B1F53 #898B1F #1F8B57
square
#211F8B #8B1F53 #898B1F #1F8B57
split-complementary
#211F8B #8B571F #538B1F
monochromatic
#090927 #151459 #211F8B #2D2ABD #504DD7

Accessibility & contrast

On white

12.86
#211F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#211F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211F8B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F8B#FFFFFF#000000##FFFFFF
##211F8B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #211f8b;
/* rgb */ color: rgb(33, 31, 139);
/* oklch */ color: oklch(33.3% 0.170 272.9);
Tailwind
colors: {
  custom: {
    50: '#6f5cae',
    500: '#211f8b',
    950: '#000000',
  },
}
SCSS
$custom: #211f8b;
$custom-light: #6f5cae;
$custom-dark: #000000;
JSON
{
  "hex": "#211f8b",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 241.111,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33285,
    "c": 0.17022,
    "h": 272.9
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#211F8B
secondary
#B8BA4C
accent
#E741E3
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #211F8B

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

Preview Lab → · Contrast checker → · Palette generator →

#211F8B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva