#212C7F#212C7F

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

Color values

HEX#212C7F
RGBrgb(33, 44, 127)
HSLhsl(233, 59%, 31%)
HSVhsv(233, 74%, 50%)
CMYKcmyk(74%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.50, 25.75, -48.24)
CIE-LCHlch(22.50, 54.69, 298.09°)
OKLaboklab(34.22% 0.0026 -0.1393)
OKLCHoklch(34.22% 0.139 271.1)
XYZxyz(5.3573, 3.6565, 20.4980)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C7F #7F7421
analogous
#215B7F #212C7F #45217F
triadic
#212C7F #7F212C #2C7F21
tetradic
#212C7F #7F215B #7F7421 #217F45
square
#212C7F #7F215B #7F7421 #217F45
split-complementary
#212C7F #7F4521 #5B7F21
monochromatic
#080A1E #141B4E #212C7F #2E3DB0 #4A5AD0

Accessibility & contrast

On white

12.13
#212C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212C7F
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C7F#FFFFFF#000000##FFFFFF
##212C7F1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212c7f;
/* rgb */ color: rgb(33, 44, 127);
/* oklch */ color: oklch(34.2% 0.139 271.1);
Tailwind
colors: {
  custom: {
    50: '#6b65a5',
    500: '#212c7f',
    950: '#000000',
  },
}
SCSS
$custom: #212c7f;
$custom-light: #6b65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#212c7f",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 232.979,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34215,
    "c": 0.13937,
    "h": 271.1
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#212C7F
secondary
#B2A64A
accent
#D046E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F

Preview Lab

Preview with #212C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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