#211F7E#211F7E

#211F7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.153 H 274.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#211F7E
RGBrgb(33, 31, 126)
HSLhsl(241, 61%, 31%)
HSVhsv(241, 75%, 49%)
CMYKcmyk(73.8%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.26, 33.86, -52.93)
CIE-LCHlch(19.26, 62.83, 302.61°)
OKLaboklab(31.84% 0.0113 -0.1531)
OKLCHoklch(31.84% 0.153 274.2)
XYZxyz(4.8818, 2.8092, 20.0196)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F7E #7C7E1F
analogous
#1F4C7E #211F7E #501F7E
triadic
#211F7E #7E211F #1F7E21
tetradic
#211F7E #7E1F4C #7C7E1F #1F7E50
square
#211F7E #7E1F4C #7C7E1F #1F7E50
split-complementary
#211F7E #7E501F #4C7E1F
monochromatic
#07071C #14134D #211F7E #2E2BAF #4946D1

Accessibility & contrast

On white

13.44
#211F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#211F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211F7E
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F7E#FFFFFF#000000##FFFFFF
##211F7E1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #211f7e;
/* rgb */ color: rgb(33, 31, 126);
/* oklch */ color: oklch(31.8% 0.153 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c5ca4',
    500: '#211f7e',
    950: '#000000',
  },
}
SCSS
$custom: #211f7e;
$custom-light: #6c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#211f7e",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 241.263,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31839,
    "c": 0.15349,
    "h": 274.2
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#211F7E
secondary
#AFB148
accent
#E444E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #211F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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