#212398#212398

#212398 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.183 H 271.4°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#212398
RGBrgb(33, 35, 152)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 60%)
CMYKcmyk(78.3%, 77%, 0%, 40.4%)
CIE-LABlab(22.97, 40.54, -63.05)
CIE-LCHlch(22.97, 74.96, 302.74°)
OKLaboklab(35.32% 0.0045 -0.1825)
OKLCHoklch(35.32% 0.183 271.4)
XYZxyz(6.8938, 3.7916, 30.0682)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212398 #989621
analogous
#215F98 #212398 #5B2198
triadic
#212398 #982123 #239821
tetradic
#212398 #98215F #989621 #21985B
square
#212398 #98215F #989621 #21985B
split-complementary
#212398 #985B21 #5F9821
monochromatic
#0B0C33 #161766 #212398 #2C2FCA #595BDB

Accessibility & contrast

On white

11.94
#212398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212398
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212398#FFFFFF#000000##FFFFFF
##2123981.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.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: #212398;
/* rgb */ color: rgb(33, 35, 152);
/* oklch */ color: oklch(35.3% 0.183 271.4);
Tailwind
colors: {
  custom: {
    50: '#7260b8',
    500: '#212398',
    950: '#000000',
  },
}
SCSS
$custom: #212398;
$custom-light: #7260b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212398",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 238.992,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35321,
    "c": 0.18261,
    "h": 271.4
  },
  "luminance": 0.03792
}

Semantic roles & 50–950 ramp

primary
#212398
secondary
#BFBD56
accent
#E540E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212398

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

Preview Lab → · Contrast checker → · Palette generator →

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