#212098#212098

#212098 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.185 H 271.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#212098
RGBrgb(33, 32, 152)
HSLhsl(241, 65%, 36%)
HSVhsv(241, 79%, 60%)
CMYKcmyk(78.3%, 78.9%, 0%, 40.4%)
CIE-LABlab(22.38, 42.22, -64.02)
CIE-LCHlch(22.38, 76.69, 303.40°)
OKLaboklab(34.91% 0.0056 -0.1853)
OKLCHoklch(34.91% 0.185 271.7)
XYZxyz(6.8093, 3.6226, 30.0400)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212098 #979820
analogous
#205B98 #212098 #5D2098
triadic
#212098 #982120 #209821
tetradic
#212098 #98205B #979820 #20985D
square
#212098 #98205B #979820 #20985D
split-complementary
#212098 #985D20 #5B9820
monochromatic
#0B0B33 #161565 #212098 #2C2BCB #5857DC

Accessibility & contrast

On white

12.18
#212098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212098
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212098#FFFFFF#000000##FFFFFF
##2120981.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#002F96
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212098;
/* rgb */ color: rgb(33, 32, 152);
/* oklch */ color: oklch(34.9% 0.185 271.7);
Tailwind
colors: {
  custom: {
    50: '#725eb8',
    500: '#212098',
    950: '#000000',
  },
}
SCSS
$custom: #212098;
$custom-light: #725eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#212098",
  "rgb": {
    "r": 33,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 240.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.18543,
    "h": 271.7
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#212098
secondary
#BEBF54
accent
#E840E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212098

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

Preview Lab → · Contrast checker → · Palette generator →

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