#212F8F#212F8F

#212F8F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.158 H 269.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#212F8F
RGBrgb(33, 47, 143)
HSLhsl(232, 63%, 35%)
HSVhsv(232, 77%, 56%)
CMYKcmyk(76.9%, 67.1%, 0%, 43.9%)
CIE-LABlab(24.76, 29.82, -54.55)
CIE-LCHlch(24.76, 62.16, 298.66°)
OKLaboklab(36.33% -0.0004 -0.1578)
OKLCHoklch(36.33% 0.158 269.9)
XYZxyz(6.5999, 4.3388, 26.4709)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F8F #8F8121
analogous
#21668F #212F8F #4A218F
triadic
#212F8F #8F212F #2F8F21
tetradic
#212F8F #8F2166 #8F8121 #218F4A
square
#212F8F #8F2166 #8F8121 #218F4A
split-complementary
#212F8F #8F4A21 #668F21
monochromatic
#0A0E2C #161F5D #212F8F #2C3FC1 #5364D7

Accessibility & contrast

On white

11.24
#212F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#212F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F8F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F8F#FFFFFF#000000##FFFFFF
##212F8F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212f8f;
/* rgb */ color: rgb(33, 47, 143);
/* oklch */ color: oklch(36.3% 0.158 269.9);
Tailwind
colors: {
  custom: {
    50: '#6f67b1',
    500: '#212f8f',
    950: '#000000',
  },
}
SCSS
$custom: #212f8f;
$custom-light: #6f67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#212f8f",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 143
  },
  "hsl": {
    "h": 232.364,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36331,
    "c": 0.15778,
    "h": 269.9
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#212F8F
secondary
#BBAD51
accent
#D142E6
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #212F8F

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

Preview Lab → · Contrast checker → · Palette generator →

#212F8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva