#212C8C#212C8C

#212C8C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.157 H 270.6°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#212C8C
RGBrgb(33, 44, 140)
HSLhsl(234, 62%, 34%)
HSVhsv(234, 76%, 55%)
CMYKcmyk(76.4%, 68.6%, 0%, 45.1%)
CIE-LABlab(23.73, 30.67, -54.38)
CIE-LCHlch(23.73, 62.43, 299.43°)
OKLaboklab(35.49% 0.0017 -0.1573)
OKLCHoklch(35.49% 0.157 270.6)
XYZxyz(6.2599, 4.0175, 25.2514)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C8C #8C8121
analogous
#21628C #212C8C #4C218C
triadic
#212C8C #8C212C #2C8C21
tetradic
#212C8C #8C2162 #8C8121 #218C4C
square
#212C8C #8C2162 #8C8121 #218C4C
split-complementary
#212C8C #8C4C21 #628C21
monochromatic
#0A0D29 #151C5A #212C8C #2D3CBE #515FD6

Accessibility & contrast

On white

11.64
#212C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#212C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C8C
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C8C#FFFFFF#000000##FFFFFF
##212C8C1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212c8c;
/* rgb */ color: rgb(33, 44, 140);
/* oklch */ color: oklch(35.5% 0.157 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e65af',
    500: '#212c8c',
    950: '#000000',
  },
}
SCSS
$custom: #212c8c;
$custom-light: #6e65af;
$custom-dark: #000000;
JSON
{
  "hex": "#212c8c",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 233.832,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3549,
    "c": 0.15732,
    "h": 270.6
  },
  "luminance": 0.04018
}

Semantic roles & 50–950 ramp

primary
#212C8C
secondary
#B9AF4F
accent
#D443E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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