#211F7B#211F7B

#211F7B is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.150 H 274.6°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#211F7B
RGBrgb(33, 31, 123)
HSLhsl(241, 60%, 30%)
HSVhsv(241, 75%, 48%)
CMYKcmyk(73.2%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.94, 32.80, -51.55)
CIE-LCHlch(18.94, 61.10, 302.47°)
OKLaboklab(31.51% 0.0119 -0.149)
OKLCHoklch(31.51% 0.15 274.6)
XYZxyz(4.6912, 2.7329, 19.0153)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#211F7B #797B1F
analogous
#1F4B7B #211F7B #4F1F7B
triadic
#211F7B #7B211F #1F7B21
tetradic
#211F7B #7B1F4B #797B1F #1F7B4F
square
#211F7B #7B1F4B #797B1F #1F7B4F
split-complementary
#211F7B #7B4F1F #4B7B1F
monochromatic
#070619 #14134A #211F7B #2E2BAC #4744D0

Accessibility & contrast

On white

13.58
#211F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#211F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #211F7B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##211F7B#FFFFFF#000000##FFFFFF
##211F7B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #211f7b;
/* rgb */ color: rgb(33, 31, 123);
/* oklch */ color: oklch(31.5% 0.150 274.6);
Tailwind
colors: {
  custom: {
    50: '#6b5ca2',
    500: '#211f7b',
    950: '#000000',
  },
}
SCSS
$custom: #211f7b;
$custom-light: #6b5ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#211f7b",
  "rgb": {
    "r": 33,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 241.304,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31513,
    "c": 0.14951,
    "h": 274.6
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#211F7B
secondary
#ACAE48
accent
#E345DF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #211F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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