#212459#212459

#212459 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.1% C 0.094 H 276.4°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#212459
RGBrgb(33, 36, 89)
HSLhsl(237, 46%, 24%)
HSVhsv(237, 63%, 35%)
CMYKcmyk(62.9%, 59.6%, 0%, 65.1%)
CIE-LABlab(17.02, 16.75, -32.50)
CIE-LCHlch(17.02, 36.56, 297.27°)
OKLaboklab(29.13% 0.0105 -0.0932)
OKLCHoklch(29.13% 0.094 276.4)
XYZxyz(3.0607, 2.3061, 9.7331)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212459 #595621
analogous
#214059 #212459 #3A2159
triadic
#212459 #592124 #245921
tetradic
#212459 #592140 #595621 #21593A
square
#212459 #592140 #595621 #21593A
split-complementary
#212459 #593A21 #405921
monochromatic
#080916 #10122C #212459 #323686 #4248B2

Accessibility & contrast

On white

14.37
#212459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#212459 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212459
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212459#FFFFFF#000000##FFFFFF
##2124591.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012C5B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#00303A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212459;
/* rgb */ color: rgb(33, 36, 89);
/* oklch */ color: oklch(29.1% 0.094 276.4);
Tailwind
colors: {
  custom: {
    50: '#635e88',
    500: '#212459',
    950: '#000000',
  },
}
SCSS
$custom: #212459;
$custom-light: #635e88;
$custom-dark: #000000;
JSON
{
  "hex": "#212459",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 89
  },
  "hsl": {
    "h": 236.786,
    "s": 45.902,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29126,
    "c": 0.09376,
    "h": 276.4
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#212459
secondary
#8D8A49
accent
#CF52D6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212459

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

Preview Lab → · Contrast checker → · Palette generator →

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