#212F71#212F71

#212F71 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.6% C 0.115 H 270.0°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#212F71
RGBrgb(33, 47, 113)
HSLhsl(230, 55%, 29%)
HSVhsv(230, 71%, 44%)
CMYKcmyk(70.8%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.12, 18.22, -39.95)
CIE-LCHlch(22.12, 43.91, 294.51°)
OKLaboklab(33.55% 0.0001 -0.115)
OKLCHoklch(33.55% 0.115 270)
XYZxyz(4.6233, 3.5482, 16.0608)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F71 #716321
analogous
#215771 #212F71 #3B2171
triadic
#212F71 #71212F #2F7121
tetradic
#212F71 #712157 #716321 #21713B
square
#212F71 #712157 #716321 #21713B
split-complementary
#212F71 #713B21 #577121
monochromatic
#070A18 #131B42 #212F71 #2F43A0 #445BC8

Accessibility & contrast

On white

12.28
#212F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F71
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F71#FFFFFF#000000##FFFFFF
##212F711.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212f71;
/* rgb */ color: rgb(33, 47, 113);
/* oklch */ color: oklch(33.6% 0.115 270.0);
Tailwind
colors: {
  custom: {
    50: '#67679a',
    500: '#212f71',
    950: '#000000',
  },
}
SCSS
$custom: #212f71;
$custom-light: #67679a;
$custom-dark: #000000;
JSON
{
  "hex": "#212f71",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 229.5,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33554,
    "c": 0.11496,
    "h": 270
  },
  "luminance": 0.03549
}

Semantic roles & 50–950 ramp

primary
#212F71
secondary
#A59549
accent
#C44ADE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212F71

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

Preview Lab → · Contrast checker → · Palette generator →

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