#212F85#212F85

#212F85 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.144 H 270.1°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#212F85
RGBrgb(33, 47, 133)
HSLhsl(232, 60%, 33%)
HSVhsv(232, 75%, 52%)
CMYKcmyk(75.2%, 64.7%, 0%, 47.8%)
CIE-LABlab(23.83, 26.01, -49.84)
CIE-LCHlch(23.83, 56.22, 297.56°)
OKLaboklab(35.36% 0.0001 -0.144)
OKLCHoklch(35.36% 0.144 270.1)
XYZxyz(5.8759, 4.0492, 22.6577)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F85 #857721
analogous
#216185 #212F85 #452185
triadic
#212F85 #85212F #2F8521
tetradic
#212F85 #852161 #857721 #218545
square
#212F85 #852161 #857721 #218545
split-complementary
#212F85 #854521 #618521
monochromatic
#090C23 #151E54 #212F85 #2D40B6 #4D60D3

Accessibility & contrast

On white

11.60
#212F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#212F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F85
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F85#FFFFFF#000000##FFFFFF
##212F851.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212f85;
/* rgb */ color: rgb(33, 47, 133);
/* oklch */ color: oklch(35.4% 0.144 270.1);
Tailwind
colors: {
  custom: {
    50: '#6c67a9',
    500: '#212f85',
    950: '#000000',
  },
}
SCSS
$custom: #212f85;
$custom-light: #6c67a9;
$custom-dark: #000000;
JSON
{
  "hex": "#212f85",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 231.6,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35364,
    "c": 0.14399,
    "h": 270.1
  },
  "luminance": 0.0405
}

Semantic roles & 50–950 ramp

primary
#212F85
secondary
#B6A74C
accent
#CD44E3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212F85

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

Preview Lab → · Contrast checker → · Palette generator →

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