#212C8D#212C8D

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

Color values

HEX#212C8D
RGBrgb(33, 44, 141)
HSLhsl(234, 62%, 34%)
HSVhsv(234, 77%, 55%)
CMYKcmyk(76.6%, 68.8%, 0%, 44.7%)
CIE-LABlab(23.83, 31.05, -54.84)
CIE-LCHlch(23.83, 63.02, 299.52°)
OKLaboklab(35.59% 0.0016 -0.1587)
OKLCHoklch(35.59% 0.159 270.6)
XYZxyz(6.3340, 4.0471, 25.6415)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C8D #8D8221
analogous
#21628D #212C8D #4C218D
triadic
#212C8D #8D212C #2C8D21
tetradic
#212C8D #8D2162 #8D8221 #218D4C
square
#212C8D #8D2162 #8D8221 #218D4C
split-complementary
#212C8D #8D4C21 #628D21
monochromatic
#0A0D2A #151D5B #212C8D #2D3BBF #525FD6

Accessibility & contrast

On white

11.60
#212C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#212C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C8D
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C8D#FFFFFF#000000##FFFFFF
##212C8D1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212c8d;
/* rgb */ color: rgb(33, 44, 141);
/* oklch */ color: oklch(35.6% 0.159 270.6);
Tailwind
colors: {
  custom: {
    50: '#6e65af',
    500: '#212c8d',
    950: '#000000',
  },
}
SCSS
$custom: #212c8d;
$custom-light: #6e65af;
$custom-dark: #000000;
JSON
{
  "hex": "#212c8d",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 233.889,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3559,
    "c": 0.15866,
    "h": 270.6
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#212C8D
secondary
#BAAF50
accent
#D543E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #212C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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