#212858#212858

#212858 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.9% C 0.086 H 273.8°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#212858
RGBrgb(33, 40, 88)
HSLhsl(232, 45%, 24%)
HSVhsv(232, 63%, 35%)
CMYKcmyk(62.5%, 54.5%, 0%, 65.5%)
CIE-LABlab(18.12, 13.47, -30.05)
CIE-LCHlch(18.12, 32.93, 294.15°)
OKLaboklab(29.93% 0.0057 -0.0859)
OKLCHoklch(29.93% 0.086 273.8)
XYZxyz(3.1469, 2.5453, 9.5561)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212858 #585121
analogous
#214358 #212858 #352158
triadic
#212858 #582128 #285821
tetradic
#212858 #582143 #585121 #215835
square
#212858 #582143 #585121 #215835
split-complementary
#212858 #583521 #435821
monochromatic
#080A16 #10142B #212858 #323C85 #4250B1

Accessibility & contrast

On white

13.92
#212858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#212858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212858
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212858#FFFFFF#000000##FFFFFF
##2128581.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2F5A
Deuteranopia (green-blind)
#052A57
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #212858;
/* rgb */ color: rgb(33, 40, 88);
/* oklch */ color: oklch(29.9% 0.086 273.8);
Tailwind
colors: {
  custom: {
    50: '#626187',
    500: '#212858',
    950: '#000000',
  },
}
SCSS
$custom: #212858;
$custom-light: #626187;
$custom-dark: #000000;
JSON
{
  "hex": "#212858",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 232.364,
    "s": 45.455,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2993,
    "c": 0.08611,
    "h": 273.8
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#212858
secondary
#8C8449
accent
#C553D5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05050B
muted
#7A797C

Preview Lab

Preview with #212858

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

Preview Lab → · Contrast checker → · Palette generator →

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