#212F78#212F78

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

Color values

HEX#212F78
RGBrgb(33, 47, 120)
HSLhsl(230, 57%, 30%)
HSVhsv(230, 73%, 47%)
CMYKcmyk(72.5%, 60.8%, 0%, 52.9%)
CIE-LABlab(22.70, 20.97, -43.49)
CIE-LCHlch(22.70, 48.28, 295.74°)
OKLaboklab(34.17% 0.0003 -0.1254)
OKLCHoklch(34.17% 0.125 270.1)
XYZxyz(5.0327, 3.7119, 18.2169)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F78 #786A21
analogous
#215A78 #212F78 #3F2178
triadic
#212F78 #78212F #2F7821
tetradic
#212F78 #78215A #786A21 #21783F
square
#212F78 #78215A #786A21 #21783F
split-complementary
#212F78 #783F21 #5A7821
monochromatic
#070918 #141C48 #212F78 #2E42A8 #475CCC

Accessibility & contrast

On white

12.05
#212F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F78
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F78#FFFFFF#000000##FFFFFF
##212F781.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212f78;
/* rgb */ color: rgb(33, 47, 120);
/* oklch */ color: oklch(34.2% 0.125 270.1);
Tailwind
colors: {
  custom: {
    50: '#6967a0',
    500: '#212f78',
    950: '#000000',
  },
}
SCSS
$custom: #212f78;
$custom-light: #6967a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212f78",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 230.345,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.34167,
    "c": 0.12536,
    "h": 270.1
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#212F78
secondary
#AB9B4A
accent
#C848E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #212F78

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

Preview Lab → · Contrast checker → · Palette generator →

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