#212656#212656

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

Color values

HEX#212656
RGBrgb(33, 38, 86)
HSLhsl(234, 45%, 23%)
HSVhsv(234, 62%, 34%)
CMYKcmyk(61.6%, 55.8%, 0%, 66.3%)
CIE-LABlab(17.37, 14.16, -29.92)
CIE-LCHlch(17.37, 33.10, 295.33°)
OKLaboklab(29.32% 0.0079 -0.0855)
OKLCHoklch(29.32% 0.086 275.3)
XYZxyz(2.9995, 2.3812, 9.1039)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212656 #565121
analogous
#214056 #212656 #362156
triadic
#212656 #562126 #265621
tetradic
#212656 #562140 #565121 #215636
square
#212656 #562140 #565121 #215636
split-complementary
#212656 #563621 #405621
monochromatic
#080A16 #10122A #212656 #323A82 #434DAE

Accessibility & contrast

On white

14.23
#212656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#212656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212656
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212656#FFFFFF#000000##FFFFFF
##2126561.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D58
Deuteranopia (green-blind)
#032955
Tritanopia (blue-blind)
#03313A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212656;
/* rgb */ color: rgb(33, 38, 86);
/* oklch */ color: oklch(29.3% 0.086 275.3);
Tailwind
colors: {
  custom: {
    50: '#626086',
    500: '#212656',
    950: '#000000',
  },
}
SCSS
$custom: #212656;
$custom-light: #626086;
$custom-dark: #000000;
JSON
{
  "hex": "#212656",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 86
  },
  "hsl": {
    "h": 234.34,
    "s": 44.538,
    "l": 23.333
  },
  "oklch": {
    "l": 0.29318,
    "c": 0.08592,
    "h": 275.3
  },
  "luminance": 0.02381
}

Semantic roles & 50–950 ramp

primary
#212656
secondary
#8A8449
accent
#C854D4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212656

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

Preview Lab → · Contrast checker → · Palette generator →

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