#212F7B#212F7B

#212F7B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.130 H 270.1°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#212F7B
RGBrgb(33, 47, 123)
HSLhsl(231, 58%, 31%)
HSVhsv(231, 73%, 48%)
CMYKcmyk(73.2%, 61.8%, 0%, 51.8%)
CIE-LABlab(22.95, 22.14, -44.98)
CIE-LCHlch(22.95, 50.13, 296.20°)
OKLaboklab(34.44% 0.0003 -0.1297)
OKLCHoklch(34.44% 0.13 270.1)
XYZxyz(5.2176, 3.7859, 19.1908)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212F7B #7B6D21
analogous
#215C7B #212F7B #40217B
triadic
#212F7B #7B212F #2F7B21
tetradic
#212F7B #7B215C #7B6D21 #217B40
square
#212F7B #7B215C #7B6D21 #217B40
split-complementary
#212F7B #7B4021 #5C7B21
monochromatic
#070A1A #141D4B #212F7B #2E41AB #485DCE

Accessibility & contrast

On white

11.95
#212F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212F7B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212F7B#FFFFFF#000000##FFFFFF
##212F7B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212f7b;
/* rgb */ color: rgb(33, 47, 123);
/* oklch */ color: oklch(34.4% 0.130 270.1);
Tailwind
colors: {
  custom: {
    50: '#6a67a2',
    500: '#212f7b',
    950: '#000000',
  },
}
SCSS
$custom: #212f7b;
$custom-light: #6a67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#212f7b",
  "rgb": {
    "r": 33,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 230.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34437,
    "c": 0.12973,
    "h": 270.1
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#212F7B
secondary
#AE9E4A
accent
#C947E1
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #212F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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