#212F86#212F86

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

Color values

HEX#212F86
RGBrgb(33, 47, 134)
HSLhsl(232, 60%, 33%)
HSVhsv(232, 75%, 53%)
CMYKcmyk(75.4%, 64.9%, 0%, 47.5%)
CIE-LABlab(23.92, 26.39, -50.32)
CIE-LCHlch(23.92, 56.82, 297.68°)
OKLaboklab(35.46% 0.0001 -0.1454)
OKLCHoklch(35.46% 0.145 270)
XYZxyz(5.9453, 4.0770, 23.0232)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F86 #867821
analogous
#216186 #212F86 #452186
triadic
#212F86 #86212F #2F8621
tetradic
#212F86 #862161 #867821 #218645
square
#212F86 #862161 #867821 #218645
split-complementary
#212F86 #864521 #618621
monochromatic
#090D24 #151E55 #212F86 #2D40B7 #4E60D3

Accessibility & contrast

On white

11.57
#212F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F86
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F86#FFFFFF#000000##FFFFFF
##212F861.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212f86;
/* rgb */ color: rgb(33, 47, 134);
/* oklch */ color: oklch(35.5% 0.145 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c67aa',
    500: '#212f86',
    950: '#000000',
  },
}
SCSS
$custom: #212f86;
$custom-light: #6c67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#212f86",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 231.683,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35459,
    "c": 0.14539,
    "h": 270
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212F86

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

Preview Lab → · Contrast checker → · Palette generator →

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