#212498#212498

#212498 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.182 H 271.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#212498
RGBrgb(33, 36, 152)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(78.3%, 76.3%, 0%, 40.4%)
CIE-LABlab(23.17, 39.97, -62.71)
CIE-LCHlch(23.17, 74.37, 302.51°)
OKLaboklab(35.47% 0.0041 -0.1816)
OKLCHoklch(35.47% 0.182 271.3)
XYZxyz(6.9237, 3.8513, 30.0782)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212498 #989521
analogous
#216098 #212498 #5A2198
triadic
#212498 #982124 #249821
tetradic
#212498 #982160 #989521 #21985A
square
#212498 #982160 #989521 #21985A
split-complementary
#212498 #985A21 #609821
monochromatic
#0B0C33 #161866 #212498 #2C30CA #595CDB

Accessibility & contrast

On white

11.86
#212498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212498
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212498#FFFFFF#000000##FFFFFF
##2124981.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212498;
/* rgb */ color: rgb(33, 36, 152);
/* oklch */ color: oklch(35.5% 0.182 271.3);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#212498',
    950: '#000000',
  },
}
SCSS
$custom: #212498;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212498",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 152
  },
  "hsl": {
    "h": 238.487,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35465,
    "c": 0.18163,
    "h": 271.3
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#212498
secondary
#BFBC56
accent
#E340E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212498

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

Preview Lab → · Contrast checker → · Palette generator →

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