#212652#212652

#212652 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.0% C 0.079 H 275.4°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#212652
RGBrgb(33, 38, 82)
HSLhsl(234, 43%, 23%)
HSVhsv(234, 60%, 32%)
CMYKcmyk(59.8%, 53.7%, 0%, 67.8%)
CIE-LABlab(17.08, 12.63, -27.70)
CIE-LCHlch(17.08, 30.44, 294.51°)
OKLaboklab(29% 0.0075 -0.079)
OKLCHoklch(29% 0.079 275.4)
XYZxyz(2.8428, 2.3186, 8.2787)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212652 #524D21
analogous
#213E52 #212652 #352152
triadic
#212652 #522126 #265221
tetradic
#212652 #52213E #524D21 #215235
square
#212652 #52213E #524D21 #215235
split-complementary
#212652 #523521 #3E5221
monochromatic
#090A16 #0F1226 #212652 #333A7E #444EA9

Accessibility & contrast

On white

14.35
#212652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212652
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212652#FFFFFF#000000##FFFFFF
##2126521.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#0A2851
Tritanopia (blue-blind)
#083038
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212652;
/* rgb */ color: rgb(33, 38, 82);
/* oklch */ color: oklch(29.0% 0.079 275.4);
Tailwind
colors: {
  custom: {
    50: '#616083',
    500: '#212652',
    950: '#000000',
  },
}
SCSS
$custom: #212652;
$custom-light: #616083;
$custom-dark: #000000;
JSON
{
  "hex": "#212652",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 82
  },
  "hsl": {
    "h": 233.878,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29,
    "c": 0.07939,
    "h": 275.4
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#212652
secondary
#868049
accent
#C655D2
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #212652

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

Preview Lab → · Contrast checker → · Palette generator →

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