#212898#212898

#212898 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.178 H 270.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#212898
RGBrgb(33, 40, 152)
HSLhsl(236, 64%, 36%)
HSVhsv(236, 78%, 60%)
CMYKcmyk(78.3%, 73.7%, 0%, 40.4%)
CIE-LABlab(24.02, 37.59, -61.31)
CIE-LCHlch(24.02, 71.92, 301.51°)
OKLaboklab(36.07% 0.0024 -0.1775)
OKLCHoklch(36.07% 0.178 270.8)
XYZxyz(7.0516, 4.1071, 30.1208)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212898 #989121
analogous
#216498 #212898 #562198
triadic
#212898 #982128 #289821
tetradic
#212898 #982164 #989121 #219856
square
#212898 #982164 #989121 #219856
split-complementary
#212898 #985621 #649821
monochromatic
#0B0E33 #161B66 #212898 #2C35CA #5960DB

Accessibility & contrast

On white

11.53
#212898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#212898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212898
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212898#FFFFFF#000000##FFFFFF
##2128981.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212898;
/* rgb */ color: rgb(33, 40, 152);
/* oklch */ color: oklch(36.1% 0.178 270.8);
Tailwind
colors: {
  custom: {
    50: '#7263b7',
    500: '#212898',
    950: '#000000',
  },
}
SCSS
$custom: #212898;
$custom-light: #7263b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212898",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 236.471,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3607,
    "c": 0.17755,
    "h": 270.8
  },
  "luminance": 0.04108
}

Semantic roles & 50–950 ramp

primary
#212898
secondary
#BFB956
accent
#DE40E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212898

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

Preview Lab → · Contrast checker → · Palette generator →

#212898 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva