#212F88#212F88

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

Color values

HEX#212F88
RGBrgb(33, 47, 136)
HSLhsl(232, 61%, 33%)
HSVhsv(232, 76%, 53%)
CMYKcmyk(75.7%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.11, 27.16, -51.27)
CIE-LCHlch(24.11, 58.02, 297.91°)
OKLaboklab(35.65% 0 -0.1482)
OKLCHoklch(35.65% 0.148 270)
XYZxyz(6.0861, 4.1333, 23.7648)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F88 #887A21
analogous
#216288 #212F88 #462188
triadic
#212F88 #88212F #2F8821
tetradic
#212F88 #882162 #887A21 #218846
square
#212F88 #882162 #887A21 #218846
split-complementary
#212F88 #884621 #628821
monochromatic
#090D25 #151E57 #212F88 #2D40B9 #4F61D4

Accessibility & contrast

On white

11.50
#212F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#212F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F88
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F88#FFFFFF#000000##FFFFFF
##212F881.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212f88;
/* rgb */ color: rgb(33, 47, 136);
/* oklch */ color: oklch(35.6% 0.148 270.0);
Tailwind
colors: {
  custom: {
    50: '#6d67ac',
    500: '#212f88',
    950: '#000000',
  },
}
SCSS
$custom: #212f88;
$custom-light: #6d67ac;
$custom-dark: #000000;
JSON
{
  "hex": "#212f88",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 231.845,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3565,
    "c": 0.14818,
    "h": 270
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212F88

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

Preview Lab → · Contrast checker → · Palette generator →

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