#212F74#212F74

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

Color values

HEX#212F74
RGBrgb(33, 47, 116)
HSLhsl(230, 56%, 29%)
HSVhsv(230, 72%, 45%)
CMYKcmyk(71.6%, 59.5%, 0%, 54.5%)
CIE-LABlab(22.36, 19.40, -41.48)
CIE-LCHlch(22.36, 45.79, 295.06°)
OKLaboklab(33.81% 0.0002 -0.1194)
OKLCHoklch(33.81% 0.119 270.1)
XYZxyz(4.7950, 3.6169, 16.9650)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F74 #746621
analogous
#215974 #212F74 #3D2174
triadic
#212F74 #74212F #2F7421
tetradic
#212F74 #742159 #746621 #21743D
square
#212F74 #742159 #746621 #21743D
split-complementary
#212F74 #743D21 #597421
monochromatic
#070A18 #131C44 #212F74 #2F42A4 #455CCA

Accessibility & contrast

On white

12.19
#212F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F74
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F74#FFFFFF#000000##FFFFFF
##212F741.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212f74;
/* rgb */ color: rgb(33, 47, 116);
/* oklch */ color: oklch(33.8% 0.119 270.1);
Tailwind
colors: {
  custom: {
    50: '#68679d',
    500: '#212f74',
    950: '#000000',
  },
}
SCSS
$custom: #212f74;
$custom-light: #68679d;
$custom-dark: #000000;
JSON
{
  "hex": "#212f74",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 229.88,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33814,
    "c": 0.11945,
    "h": 270.1
  },
  "luminance": 0.03617
}

Semantic roles & 50–950 ramp

primary
#212F74
secondary
#A79849
accent
#C649DF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212F74

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

Preview Lab → · Contrast checker → · Palette generator →

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