#212C98#212C98

#212C98 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.173 H 270.2°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#212C98
RGBrgb(33, 44, 152)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 60%)
CMYKcmyk(78.3%, 71.1%, 0%, 40.4%)
CIE-LABlab(24.92, 35.10, -59.83)
CIE-LCHlch(24.92, 69.36, 300.40°)
OKLaboklab(36.72% 0.0005 -0.1732)
OKLCHoklch(36.72% 0.173 270.2)
XYZxyz(7.1934, 4.3909, 30.1681)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212C98 #988D21
analogous
#216898 #212C98 #522198
triadic
#212C98 #98212C #2C9821
tetradic
#212C98 #982168 #988D21 #219852
square
#212C98 #982168 #988D21 #219852
split-complementary
#212C98 #985221 #689821
monochromatic
#0B0F33 #161D66 #212C98 #2C3BCA #5965DB

Accessibility & contrast

On white

11.18
#212C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#212C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212C98
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212C98#FFFFFF#000000##FFFFFF
##212C981.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003596
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #212c98;
/* rgb */ color: rgb(33, 44, 152);
/* oklch */ color: oklch(36.7% 0.173 270.2);
Tailwind
colors: {
  custom: {
    50: '#7165b7',
    500: '#212c98',
    950: '#000000',
  },
}
SCSS
$custom: #212c98;
$custom-light: #7165b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212c98",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 234.454,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36717,
    "c": 0.17321,
    "h": 270.2
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#212C98
secondary
#BFB556
accent
#D840E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212C98

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

Preview Lab → · Contrast checker → · Palette generator →

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