#212F99#212F99

#212F99 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.171 H 269.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#212F99
RGBrgb(33, 47, 153)
HSLhsl(233, 65%, 36%)
HSVhsv(233, 78%, 60%)
CMYKcmyk(78.4%, 69.3%, 0%, 40%)
CIE-LABlab(25.73, 33.55, -59.11)
CIE-LCHlch(25.73, 67.97, 299.58°)
OKLaboklab(37.33% -0.0012 -0.1711)
OKLCHoklch(37.33% 0.171 269.6)
XYZxyz(7.3915, 4.6554, 30.6399)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F99 #998B21
analogous
#216B99 #212F99 #4F2199
triadic
#212F99 #99212F #2F9921
tetradic
#212F99 #99216B #998B21 #21994F
square
#212F99 #99216B #998B21 #21994F
split-complementary
#212F99 #994F21 #6B9921
monochromatic
#0B1034 #162067 #212F99 #2C3ECB #5968DB

Accessibility & contrast

On white

10.87
#212F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#212F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F99
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F99#FFFFFF#000000##FFFFFF
##212F991.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #212f99;
/* rgb */ color: rgb(33, 47, 153);
/* oklch */ color: oklch(37.3% 0.171 269.6);
Tailwind
colors: {
  custom: {
    50: '#7168b8',
    500: '#212f99',
    950: '#000000',
  },
}
SCSS
$custom: #212f99;
$custom-light: #7168b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212f99",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 233,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37331,
    "c": 0.17112,
    "h": 269.6
  },
  "luminance": 0.04656
}

Semantic roles & 50–950 ramp

primary
#212F99
secondary
#BFB356
accent
#D440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212F99

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

Preview Lab → · Contrast checker → · Palette generator →

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