#212F72#212F72

#212F72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.6% C 0.116 H 270.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#212F72
RGBrgb(33, 47, 114)
HSLhsl(230, 55%, 29%)
HSVhsv(230, 71%, 45%)
CMYKcmyk(71.1%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.20, 18.61, -40.46)
CIE-LCHlch(22.20, 44.54, 294.70°)
OKLaboklab(33.64% 0.0001 -0.1165)
OKLCHoklch(33.64% 0.116 270.1)
XYZxyz(4.6799, 3.5708, 16.3589)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F72 #726421
analogous
#215872 #212F72 #3C2172
triadic
#212F72 #72212F #2F7221
tetradic
#212F72 #722158 #726421 #21723C
square
#212F72 #722158 #726421 #21723C
split-complementary
#212F72 #723C21 #587221
monochromatic
#070A18 #131B43 #212F72 #2F43A1 #445BC9

Accessibility & contrast

On white

12.25
#212F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F72
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F72#FFFFFF#000000##FFFFFF
##212F721.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212f72;
/* rgb */ color: rgb(33, 47, 114);
/* oklch */ color: oklch(33.6% 0.116 270.1);
Tailwind
colors: {
  custom: {
    50: '#67679b',
    500: '#212f72',
    950: '#000000',
  },
}
SCSS
$custom: #212f72;
$custom-light: #67679b;
$custom-dark: #000000;
JSON
{
  "hex": "#212f72",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 229.63,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3364,
    "c": 0.11646,
    "h": 270.1
  },
  "luminance": 0.03571
}

Semantic roles & 50–950 ramp

primary
#212F72
secondary
#A59649
accent
#C549DE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212F72

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

Preview Lab → · Contrast checker → · Palette generator →

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