#212862#212862

#212862 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.8% C 0.102 H 273.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#212862
RGBrgb(33, 40, 98)
HSLhsl(234, 50%, 26%)
HSVhsv(234, 66%, 38%)
CMYKcmyk(66.3%, 59.2%, 0%, 61.6%)
CIE-LABlab(18.90, 17.34, -35.43)
CIE-LCHlch(18.90, 39.44, 296.08°)
OKLaboklab(30.76% 0.0064 -0.1017)
OKLCHoklch(30.76% 0.102 273.6)
XYZxyz(3.5899, 2.7225, 11.8892)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212862 #625B21
analogous
#214862 #212862 #3A2162
triadic
#212862 #622128 #286221
tetradic
#212862 #622148 #625B21 #21623A
square
#212862 #622148 #625B21 #21623A
split-complementary
#212862 #623A21 #486221
monochromatic
#080917 #121534 #212862 #303B90 #404DBE

Accessibility & contrast

On white

13.60
#212862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#212862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212862
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212862#FFFFFF#000000##FFFFFF
##2128621.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#003640
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #212862;
/* rgb */ color: rgb(33, 40, 98);
/* oklch */ color: oklch(30.8% 0.102 273.6);
Tailwind
colors: {
  custom: {
    50: '#64618f',
    500: '#212862',
    950: '#000000',
  },
}
SCSS
$custom: #212862;
$custom-light: #64618f;
$custom-dark: #000000;
JSON
{
  "hex": "#212862",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 98
  },
  "hsl": {
    "h": 233.538,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30759,
    "c": 0.10194,
    "h": 273.6
  },
  "luminance": 0.02723
}

Semantic roles & 50–950 ramp

primary
#212862
secondary
#968E49
accent
#CA4FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #212862

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

Preview Lab → · Contrast checker → · Palette generator →

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