#212D98#212D98

#212D98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.172 H 270.0°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#212D98
RGBrgb(33, 45, 152)
HSLhsl(234, 64%, 36%)
HSVhsv(234, 78%, 60%)
CMYKcmyk(78.3%, 70.4%, 0%, 40.4%)
CIE-LABlab(25.16, 34.47, -59.44)
CIE-LCHlch(25.16, 68.71, 300.11°)
OKLaboklab(36.89% 0 -0.1721)
OKLCHoklch(36.89% 0.172 270)
XYZxyz(7.2311, 4.4663, 30.1807)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212D98 #988C21
analogous
#216998 #212D98 #512198
triadic
#212D98 #98212D #2D9821
tetradic
#212D98 #982169 #988C21 #219851
square
#212D98 #982169 #988C21 #219851
split-complementary
#212D98 #985121 #699821
monochromatic
#0B0F33 #161E66 #212D98 #2C3CCA #5966DB

Accessibility & contrast

On white

11.09
#212D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#212D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212D98
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212D98#FFFFFF#000000##FFFFFF
##212D981.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003696
Tritanopia (blue-blind)
#004B5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #212d98;
/* rgb */ color: rgb(33, 45, 152);
/* oklch */ color: oklch(36.9% 0.172 270.0);
Tailwind
colors: {
  custom: {
    50: '#7166b7',
    500: '#212d98',
    950: '#000000',
  },
}
SCSS
$custom: #212d98;
$custom-light: #7166b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212d98",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 233.95,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36886,
    "c": 0.17209,
    "h": 270
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#212D98
secondary
#BFB456
accent
#D640E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #212D98

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

Preview Lab → · Contrast checker → · Palette generator →

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