#212239#212239

#212239 is a dark, muted blue. Relative luminance 0.018; OKLCH L 26.3% C 0.043 H 281.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#212239
RGBrgb(33, 34, 57)
HSLhsl(238, 27%, 18%)
HSVhsv(238, 42%, 22%)
CMYKcmyk(42.1%, 40.4%, 0%, 77.6%)
CIE-LABlab(14.19, 6.46, -15.03)
CIE-LCHlch(14.19, 16.36, 293.26°)
OKLaboklab(26.27% 0.0083 -0.042)
OKLCHoklch(26.27% 0.043 281.1)
XYZxyz(1.9375, 1.7627, 4.1083)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212239 #393821
analogous
#212E39 #212239 #2C2139
triadic
#212239 #392122 #223921
tetradic
#212239 #39212E #393821 #21392C
square
#212239 #39212E #393821 #21392C
split-complementary
#212239 #392C21 #2E3921
monochromatic
#0B0C13 #0B0C13 #212239 #373960 #4E5087

Accessibility & contrast

On white

15.53
#212239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#212239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212239
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212239#FFFFFF#000000##FFFFFF
##2122391.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B253A
Deuteranopia (green-blind)
#1A2338
Tritanopia (blue-blind)
#1A262A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #212239;
/* rgb */ color: rgb(33, 34, 57);
/* oklch */ color: oklch(26.3% 0.043 281.1);
Tailwind
colors: {
  custom: {
    50: '#5d5c6f',
    500: '#212239',
    950: '#000000',
  },
}
SCSS
$custom: #212239;
$custom-light: #5d5c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#212239",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 57
  },
  "hsl": {
    "h": 237.5,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.26269,
    "c": 0.04283,
    "h": 281.1
  },
  "luminance": 0.01763
}

Semantic roles & 50–950 ramp

primary
#212239
secondary
#6C6A4A
accent
#BF65C3
background
#F5F5F6
surface
#E9E9EC
border
#C5C5C7
text
#040407
muted
#79797A

Preview Lab

Preview with #212239

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

Preview Lab → · Contrast checker → · Palette generator →

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