#211F7F#211F7F

#211F7F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.155 H 274.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#211F7F
RGBrgb(33, 31, 127)
HSLhsl(241, 61%, 31%)
HSVhsv(241, 76%, 50%)
CMYKcmyk(74%, 75.6%, 0%, 50.2%)
CIE-LABlab(19.37, 34.22, -53.38)
CIE-LCHlch(19.37, 63.41, 302.66°)
OKLaboklab(31.95% 0.0111 -0.1544)
OKLCHoklch(31.95% 0.155 274.1)
XYZxyz(4.9467, 2.8351, 20.3611)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F7F #7D7F1F
analogous
#1F4D7F #211F7F #511F7F
triadic
#211F7F #7F211F #1F7F21
tetradic
#211F7F #7F1F4D #7D7F1F #1F7F51
square
#211F7F #7F1F4D #7D7F1F #1F7F51
split-complementary
#211F7F #7F511F #4D7F1F
monochromatic
#07071D #14134E #211F7F #2E2BB0 #4946D2

Accessibility & contrast

On white

13.40
#211F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#211F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211F7F
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F7F#FFFFFF#000000##FFFFFF
##211F7F1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #211f7f;
/* rgb */ color: rgb(33, 31, 127);
/* oklch */ color: oklch(31.9% 0.155 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c5ca5',
    500: '#211f7f',
    950: '#000000',
  },
}
SCSS
$custom: #211f7f;
$custom-light: #6c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#211f7f",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 241.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31949,
    "c": 0.1548,
    "h": 274.1
  },
  "luminance": 0.02836
}

Semantic roles & 50–950 ramp

primary
#211F7F
secondary
#B0B248
accent
#E444E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #211F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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