#212657#212657

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

Color values

HEX#212657
RGBrgb(33, 38, 87)
HSLhsl(234, 45%, 24%)
HSVhsv(234, 62%, 34%)
CMYKcmyk(62.1%, 56.3%, 0%, 65.9%)
CIE-LABlab(17.45, 14.54, -30.46)
CIE-LCHlch(17.45, 33.76, 295.52°)
OKLaboklab(29.4% 0.008 -0.0872)
OKLCHoklch(29.4% 0.088 275.3)
XYZxyz(3.0401, 2.3975, 9.3175)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212657 #575221
analogous
#214157 #212657 #372157
triadic
#212657 #572126 #265721
tetradic
#212657 #572141 #575221 #215737
square
#212657 #572141 #575221 #215737
split-complementary
#212657 #573721 #415721
monochromatic
#080A16 #10132B #212657 #323983 #434DB0

Accessibility & contrast

On white

14.19
#212657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212657
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212657#FFFFFF#000000##FFFFFF
##2126571.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2D59
Deuteranopia (green-blind)
#022956
Tritanopia (blue-blind)
#02313A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212657;
/* rgb */ color: rgb(33, 38, 87);
/* oklch */ color: oklch(29.4% 0.088 275.3);
Tailwind
colors: {
  custom: {
    50: '#626087',
    500: '#212657',
    950: '#000000',
  },
}
SCSS
$custom: #212657;
$custom-light: #626087;
$custom-dark: #000000;
JSON
{
  "hex": "#212657",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 87
  },
  "hsl": {
    "h": 234.444,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29399,
    "c": 0.08754,
    "h": 275.3
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#212657
secondary
#8B8549
accent
#C953D5
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212657

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

Preview Lab → · Contrast checker → · Palette generator →

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