#212F76#212F76

#212F76 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.0% C 0.122 H 270.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#212F76
RGBrgb(33, 47, 118)
HSLhsl(230, 56%, 30%)
HSVhsv(230, 72%, 46%)
CMYKcmyk(72%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.53, 20.18, -42.49)
CIE-LCHlch(22.53, 47.04, 295.41°)
OKLaboklab(33.99% 0.0003 -0.1224)
OKLCHoklch(33.99% 0.122 270.1)
XYZxyz(4.9126, 3.6639, 17.5843)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F76 #766821
analogous
#215976 #212F76 #3E2176
triadic
#212F76 #76212F #2F7621
tetradic
#212F76 #762159 #766821 #21763E
square
#212F76 #762159 #766821 #21763E
split-complementary
#212F76 #763E21 #597621
monochromatic
#070A18 #141C46 #212F76 #2E42A6 #465CCB

Accessibility & contrast

On white

12.12
#212F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F76
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F76#FFFFFF#000000##FFFFFF
##212F761.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212f76;
/* rgb */ color: rgb(33, 47, 118);
/* oklch */ color: oklch(34.0% 0.122 270.1);
Tailwind
colors: {
  custom: {
    50: '#68679e',
    500: '#212f76',
    950: '#000000',
  },
}
SCSS
$custom: #212f76;
$custom-light: #68679e;
$custom-dark: #000000;
JSON
{
  "hex": "#212f76",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 230.118,
    "s": 56.291,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33989,
    "c": 0.12241,
    "h": 270.1
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#212F76
secondary
#A9994A
accent
#C748E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #212F76

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

Preview Lab → · Contrast checker → · Palette generator →

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