#212F87#212F87

#212F87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.147 H 270.0°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#212F87
RGBrgb(33, 47, 135)
HSLhsl(232, 61%, 33%)
HSVhsv(232, 76%, 53%)
CMYKcmyk(75.6%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.02, 26.78, -50.79)
CIE-LCHlch(24.02, 57.42, 297.80°)
OKLaboklab(35.56% 0.0001 -0.1468)
OKLCHoklch(35.56% 0.147 270)
XYZxyz(6.0154, 4.1050, 23.3923)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F87 #877921
analogous
#216287 #212F87 #462187
triadic
#212F87 #87212F #2F8721
tetradic
#212F87 #872162 #877921 #218746
square
#212F87 #872162 #877921 #218746
split-complementary
#212F87 #874621 #628721
monochromatic
#090D25 #151E56 #212F87 #2D40B8 #4F61D4

Accessibility & contrast

On white

11.53
#212F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F87
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F87#FFFFFF#000000##FFFFFF
##212F871.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212f87;
/* rgb */ color: rgb(33, 47, 135);
/* oklch */ color: oklch(35.6% 0.147 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d67ab',
    500: '#212f87',
    950: '#000000',
  },
}
SCSS
$custom: #212f87;
$custom-light: #6d67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#212f87",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 231.765,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35555,
    "c": 0.14679,
    "h": 270
  },
  "luminance": 0.04106
}

Semantic roles & 50–950 ramp

primary
#212F87
secondary
#B7A84D
accent
#CE44E4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #212F87

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

Preview Lab → · Contrast checker → · Palette generator →

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