#212558#212558

#212558 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.091 H 275.9°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#212558
RGBrgb(33, 37, 88)
HSLhsl(236, 45%, 24%)
HSVhsv(236, 63%, 35%)
CMYKcmyk(62.5%, 58%, 0%, 65.5%)
CIE-LABlab(17.23, 15.65, -31.49)
CIE-LCHlch(17.23, 35.16, 296.43°)
OKLaboklab(29.26% 0.0093 -0.0902)
OKLCHoklch(29.26% 0.091 275.9)
XYZxyz(3.0497, 2.3508, 9.5237)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212558 #585421
analogous
#214058 #212558 #382158
triadic
#212558 #582125 #255821
tetradic
#212558 #582140 #585421 #215838
square
#212558 #582140 #585421 #215838
split-complementary
#212558 #583821 #405821
monochromatic
#080916 #10122B #212558 #323885 #424AB1

Accessibility & contrast

On white

14.28
#212558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#212558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212558
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212558#FFFFFF#000000##FFFFFF
##2125581.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062D5A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#01313A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212558;
/* rgb */ color: rgb(33, 37, 88);
/* oklch */ color: oklch(29.3% 0.091 275.9);
Tailwind
colors: {
  custom: {
    50: '#625f87',
    500: '#212558',
    950: '#000000',
  },
}
SCSS
$custom: #212558;
$custom-light: #625f87;
$custom-dark: #000000;
JSON
{
  "hex": "#212558",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 88
  },
  "hsl": {
    "h": 235.636,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.29259,
    "c": 0.09066,
    "h": 275.9
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#212558
secondary
#8C8749
accent
#CC53D5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212558

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

Preview Lab → · Contrast checker → · Palette generator →

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