#211F7D#211F7D

#211F7D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.152 H 274.3°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#211F7D
RGBrgb(33, 31, 125)
HSLhsl(241, 60%, 31%)
HSVhsv(241, 75%, 49%)
CMYKcmyk(73.6%, 75.2%, 0%, 51%)
CIE-LABlab(19.16, 33.51, -52.47)
CIE-LCHlch(19.16, 62.26, 302.56°)
OKLaboklab(31.73% 0.0115 -0.1517)
OKLCHoklch(31.73% 0.152 274.3)
XYZxyz(4.8176, 2.7835, 19.6814)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F7D #7B7D1F
analogous
#1F4C7D #211F7D #501F7D
triadic
#211F7D #7D211F #1F7D21
tetradic
#211F7D #7D1F4C #7B7D1F #1F7D50
square
#211F7D #7D1F4C #7B7D1F #1F7D50
split-complementary
#211F7D #7D501F #4C7D1F
monochromatic
#07071B #14134C #211F7D #2E2BAE #4845D1

Accessibility & contrast

On white

13.49
#211F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #211F7D
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F7D#FFFFFF#000000##FFFFFF
##211F7D1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #211f7d;
/* rgb */ color: rgb(33, 31, 125);
/* oklch */ color: oklch(31.7% 0.152 274.3);
Tailwind
colors: {
  custom: {
    50: '#6c5ca4',
    500: '#211f7d',
    950: '#000000',
  },
}
SCSS
$custom: #211f7d;
$custom-light: #6c5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#211f7d",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 241.277,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3173,
    "c": 0.15217,
    "h": 274.3
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#211F7D
secondary
#AEB048
accent
#E344E0
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #211F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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