#212F79#212F79

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

Color values

HEX#212F79
RGBrgb(33, 47, 121)
HSLhsl(230, 57%, 30%)
HSVhsv(230, 73%, 47%)
CMYKcmyk(72.7%, 61.2%, 0%, 52.5%)
CIE-LABlab(22.78, 21.36, -43.99)
CIE-LCHlch(22.78, 48.90, 295.90°)
OKLaboklab(34.26% 0.0003 -0.1268)
OKLCHoklch(34.26% 0.127 270.1)
XYZxyz(5.0937, 3.7363, 18.5382)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F79 #796B21
analogous
#215B79 #212F79 #3F2179
triadic
#212F79 #79212F #2F7921
tetradic
#212F79 #79215B #796B21 #21793F
square
#212F79 #79215B #796B21 #21793F
split-complementary
#212F79 #793F21 #5B7921
monochromatic
#070A19 #141C49 #212F79 #2E42A9 #475DCD

Accessibility & contrast

On white

12.02
#212F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F79
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F79#FFFFFF#000000##FFFFFF
##212F791.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212f79;
/* rgb */ color: rgb(33, 47, 121);
/* oklch */ color: oklch(34.3% 0.127 270.1);
Tailwind
colors: {
  custom: {
    50: '#6967a0',
    500: '#212f79',
    950: '#000000',
  },
}
SCSS
$custom: #212f79;
$custom-light: #6967a0;
$custom-dark: #000000;
JSON
{
  "hex": "#212f79",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 230.455,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34256,
    "c": 0.12682,
    "h": 270.1
  },
  "luminance": 0.03737
}

Semantic roles & 50–950 ramp

primary
#212F79
secondary
#AC9C4A
accent
#C847E0
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060F
muted
#7A7A7E

Preview Lab

Preview with #212F79

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

Preview Lab → · Contrast checker → · Palette generator →

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