#212840#212840

#212840 is a dark, muted blue. Relative luminance 0.022; OKLCH L 28.2% C 0.045 H 270.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#212840
RGBrgb(33, 40, 64)
HSLhsl(226, 32%, 19%)
HSVhsv(226, 48%, 25%)
CMYKcmyk(48.4%, 37.5%, 0%, 74.9%)
CIE-LABlab(16.56, 4.52, -16.22)
CIE-LCHlch(16.56, 16.83, 285.57°)
OKLaboklab(28.23% 0.0007 -0.0454)
OKLCHoklch(28.23% 0.045 270.9)
XYZxyz(2.3111, 2.2110, 5.1545)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212840 #403921
analogous
#213840 #212840 #2A2140
triadic
#212840 #402128 #284021
tetradic
#212840 #402138 #403921 #21402A
square
#212840 #402138 #403921 #21402A
split-complementary
#212840 #402A21 #384021
monochromatic
#0A0D14 #0C0F18 #212840 #364168 #4B5A91

Accessibility & contrast

On white

14.56
#212840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#212840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212840
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212840#FFFFFF#000000##FFFFFF
##2128401.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202A41
Deuteranopia (green-blind)
#1D283F
Tritanopia (blue-blind)
#172D31
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #212840;
/* rgb */ color: rgb(33, 40, 64);
/* oklch */ color: oklch(28.2% 0.045 270.9);
Tailwind
colors: {
  custom: {
    50: '#5e6175',
    500: '#212840',
    950: '#000000',
  },
}
SCSS
$custom: #212840;
$custom-light: #5e6175;
$custom-dark: #000000;
JSON
{
  "hex": "#212840",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 226.452,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28227,
    "c": 0.04546,
    "h": 270.9
  },
  "luminance": 0.02211
}

Semantic roles & 50–950 ramp

primary
#212840
secondary
#746A49
accent
#B160C8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040508
muted
#79797B

Preview Lab

Preview with #212840

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

Preview Lab → · Contrast checker → · Palette generator →

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