#212599#212599

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

Color values

HEX#212599
RGBrgb(33, 37, 153)
HSLhsl(238, 65%, 36%)
HSVhsv(238, 78%, 60%)
CMYKcmyk(78.4%, 75.8%, 0%, 40%)
CIE-LABlab(23.49, 39.73, -62.80)
CIE-LCHlch(23.49, 74.32, 302.32°)
OKLaboklab(35.72% 0.0035 -0.1819)
OKLCHoklch(35.72% 0.182 271.1)
XYZxyz(7.0366, 3.9456, 30.5215)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212599 #999521
analogous
#216199 #212599 #592199
triadic
#212599 #992125 #259921
tetradic
#212599 #992161 #999521 #219959
square
#212599 #992161 #999521 #219959
split-complementary
#212599 #995921 #619921
monochromatic
#0B0D34 #161967 #212599 #2C31CB #595EDB

Accessibility & contrast

On white

11.74
#212599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212599
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212599#FFFFFF#000000##FFFFFF
##2125991.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212599;
/* rgb */ color: rgb(33, 37, 153);
/* oklch */ color: oklch(35.7% 0.182 271.1);
Tailwind
colors: {
  custom: {
    50: '#7261b8',
    500: '#212599',
    950: '#000000',
  },
}
SCSS
$custom: #212599;
$custom-light: #7261b8;
$custom-dark: #000000;
JSON
{
  "hex": "#212599",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 238,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35723,
    "c": 0.18188,
    "h": 271.1
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#212599
secondary
#BFBC56
accent
#E240E8
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090512
muted
#7B7981

Preview Lab

Preview with #212599

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

Preview Lab → · Contrast checker → · Palette generator →

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