#212598#212598

#212598 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.181 H 271.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#212598
RGBrgb(33, 37, 152)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(78.3%, 75.7%, 0%, 40.4%)
CIE-LABlab(23.38, 39.38, -62.37)
CIE-LCHlch(23.38, 73.76, 302.27°)
OKLaboklab(35.61% 0.0037 -0.1806)
OKLCHoklch(35.61% 0.181 271.2)
XYZxyz(6.9543, 3.9127, 30.0884)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212598 #989421
analogous
#216198 #212598 #592198
triadic
#212598 #982125 #259821
tetradic
#212598 #982161 #989421 #219859
square
#212598 #982161 #989421 #219859
split-complementary
#212598 #985921 #619821
monochromatic
#0B0D33 #161966 #212598 #2C31CA #595DDB

Accessibility & contrast

On white

11.78
#212598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212598
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212598#FFFFFF#000000##FFFFFF
##2125981.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212598;
/* rgb */ color: rgb(33, 37, 152);
/* oklch */ color: oklch(35.6% 0.181 271.2);
Tailwind
colors: {
  custom: {
    50: '#7261b8',
    500: '#212598',
    950: '#000000',
  },
}
SCSS
$custom: #212598;
$custom-light: #7261b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212598",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 237.983,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35612,
    "c": 0.18063,
    "h": 271.2
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

primary
#212598
secondary
#BFBB56
accent
#E240E7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212598

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

Preview Lab → · Contrast checker → · Palette generator →

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