#212F9B#212F9B

#212F9B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.174 H 269.5°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#212F9B
RGBrgb(33, 47, 155)
HSLhsl(233, 65%, 37%)
HSVhsv(233, 79%, 61%)
CMYKcmyk(78.7%, 69.7%, 0%, 39.2%)
CIE-LABlab(25.93, 34.29, -60.01)
CIE-LCHlch(25.93, 69.11, 299.74°)
OKLaboklab(37.54% -0.0014 -0.1737)
OKLCHoklch(37.54% 0.174 269.5)
XYZxyz(7.5581, 4.7221, 31.5171)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F9B #9B8D21
analogous
#216C9B #212F9B #50219B
triadic
#212F9B #9B212F #2F9B21
tetradic
#212F9B #9B216C #9B8D21 #219B50
square
#212F9B #9B216C #9B8D21 #219B50
split-complementary
#212F9B #9B5021 #6C9B21
monochromatic
#0C1036 #162069 #212F9B #2C3ECD #5A69DC

Accessibility & contrast

On white

10.80
#212F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#212F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F9B
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F9B#FFFFFF#000000##FFFFFF
##212F9B1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212f9b;
/* rgb */ color: rgb(33, 47, 155);
/* oklch */ color: oklch(37.5% 0.174 269.5);
Tailwind
colors: {
  custom: {
    50: '#7268ba',
    500: '#212f9b',
    950: '#000000',
  },
}
SCSS
$custom: #212f9b;
$custom-light: #7268ba;
$custom-dark: #000000;
JSON
{
  "hex": "#212f9b",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 233.115,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37535,
    "c": 0.17375,
    "h": 269.5
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#212F9B
secondary
#C0B458
accent
#D540E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #212F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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