#212F8E#212F8E

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

Color values

HEX#212F8E
RGBrgb(33, 47, 142)
HSLhsl(232, 62%, 34%)
HSVhsv(232, 77%, 56%)
CMYKcmyk(76.8%, 66.9%, 0%, 44.3%)
CIE-LABlab(24.67, 29.44, -54.08)
CIE-LCHlch(24.67, 61.57, 298.56°)
OKLaboklab(36.23% -0.0003 -0.1564)
OKLCHoklch(36.23% 0.156 269.9)
XYZxyz(6.5245, 4.3087, 26.0737)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F8E #8E8021
analogous
#21668E #212F8E #4A218E
triadic
#212F8E #8E212F #2F8E21
tetradic
#212F8E #8E2166 #8E8021 #218E4A
square
#212F8E #8E2166 #8E8021 #218E4A
split-complementary
#212F8E #8E4A21 #668E21
monochromatic
#0A0E2B #151F5C #212F8E #2D3FC0 #5263D7

Accessibility & contrast

On white

11.28
#212F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#212F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F8E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F8E#FFFFFF#000000##FFFFFF
##212F8E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212f8e;
/* rgb */ color: rgb(33, 47, 142);
/* oklch */ color: oklch(36.2% 0.156 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e67b0',
    500: '#212f8e',
    950: '#000000',
  },
}
SCSS
$custom: #212f8e;
$custom-light: #6e67b0;
$custom-dark: #000000;
JSON
{
  "hex": "#212f8e",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 232.294,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36233,
    "c": 0.15642,
    "h": 269.9
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#212F8E
secondary
#BAAD50
accent
#D042E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #212F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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