#212F77#212F77

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

Color values

HEX#212F77
RGBrgb(33, 47, 119)
HSLhsl(230, 57%, 30%)
HSVhsv(230, 72%, 47%)
CMYKcmyk(72.3%, 60.5%, 0%, 53.3%)
CIE-LABlab(22.61, 20.57, -42.99)
CIE-LCHlch(22.61, 47.66, 295.58°)
OKLaboklab(34.08% 0.0003 -0.1239)
OKLCHoklch(34.08% 0.124 270.1)
XYZxyz(4.9724, 3.6878, 17.8990)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F77 #776921
analogous
#215A77 #212F77 #3E2177
triadic
#212F77 #77212F #2F7721
tetradic
#212F77 #77215A #776921 #21773E
square
#212F77 #77215A #776921 #21773E
split-complementary
#212F77 #773E21 #5A7721
monochromatic
#070918 #141C47 #212F77 #2E42A7 #475CCC

Accessibility & contrast

On white

12.09
#212F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212F77
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F77#FFFFFF#000000##FFFFFF
##212F771.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212f77;
/* rgb */ color: rgb(33, 47, 119);
/* oklch */ color: oklch(34.1% 0.124 270.1);
Tailwind
colors: {
  custom: {
    50: '#69679f',
    500: '#212f77',
    950: '#000000',
  },
}
SCSS
$custom: #212f77;
$custom-light: #69679f;
$custom-dark: #000000;
JSON
{
  "hex": "#212f77",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 119
  },
  "hsl": {
    "h": 230.233,
    "s": 56.579,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34078,
    "c": 0.12389,
    "h": 270.1
  },
  "luminance": 0.03688
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212F77

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

Preview Lab → · Contrast checker → · Palette generator →

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