#212C8E#212C8E

#212C8E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.160 H 270.5°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#212C8E
RGBrgb(33, 44, 142)
HSLhsl(234, 62%, 34%)
HSVhsv(234, 77%, 56%)
CMYKcmyk(76.8%, 69%, 0%, 44.3%)
CIE-LABlab(23.92, 31.42, -55.30)
CIE-LCHlch(23.92, 63.60, 299.60°)
OKLaboklab(35.69% 0.0015 -0.16)
OKLCHoklch(35.69% 0.16 270.5)
XYZxyz(6.4087, 4.0770, 26.0351)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C8E #8E8321
analogous
#21638E #212C8E #4D218E
triadic
#212C8E #8E212C #2C8E21
tetradic
#212C8E #8E2163 #8E8321 #218E4D
square
#212C8E #8E2163 #8E8321 #218E4D
split-complementary
#212C8E #8E4D21 #638E21
monochromatic
#0A0D2B #151D5C #212C8E #2D3BC0 #5260D7

Accessibility & contrast

On white

11.57
#212C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C8E
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C8E#FFFFFF#000000##FFFFFF
##212C8E1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212c8e;
/* rgb */ color: rgb(33, 44, 142);
/* oklch */ color: oklch(35.7% 0.160 270.5);
Tailwind
colors: {
  custom: {
    50: '#6f65b0',
    500: '#212c8e',
    950: '#000000',
  },
}
SCSS
$custom: #212c8e;
$custom-light: #6f65b0;
$custom-dark: #000000;
JSON
{
  "hex": "#212c8e",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 233.945,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35691,
    "c": 0.16001,
    "h": 270.5
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#212C8E
secondary
#BAB050
accent
#D542E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #212C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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