#212754#212754

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

Color values

HEX#212754
RGBrgb(33, 39, 84)
HSLhsl(233, 44%, 23%)
HSVhsv(233, 61%, 33%)
CMYKcmyk(60.7%, 53.6%, 0%, 67.1%)
CIE-LABlab(17.53, 12.66, -28.33)
CIE-LCHlch(17.53, 31.03, 294.09°)
OKLaboklab(29.39% 0.0065 -0.0809)
OKLCHoklch(29.39% 0.081 274.6)
XYZxyz(2.9524, 2.4143, 8.6962)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212754 #544E21
analogous
#214054 #212754 #342154
triadic
#212754 #542127 #275421
tetradic
#212754 #542140 #544E21 #215434
square
#212754 #542140 #544E21 #215434
split-complementary
#212754 #543421 #405421
monochromatic
#090A16 #101328 #212754 #323B80 #4450AC

Accessibility & contrast

On white

14.16
#212754 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212754
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212754#FFFFFF#000000##FFFFFF
##2127541.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112D56
Deuteranopia (green-blind)
#092953
Tritanopia (blue-blind)
#063139
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #212754;
/* rgb */ color: rgb(33, 39, 84);
/* oklch */ color: oklch(29.4% 0.081 274.6);
Tailwind
colors: {
  custom: {
    50: '#616084',
    500: '#212754',
    950: '#000000',
  },
}
SCSS
$custom: #212754;
$custom-light: #616084;
$custom-dark: #000000;
JSON
{
  "hex": "#212754",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 84
  },
  "hsl": {
    "h": 232.941,
    "s": 43.59,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29386,
    "c": 0.08112,
    "h": 274.6
  },
  "luminance": 0.02414
}

Semantic roles & 50–950 ramp

primary
#212754
secondary
#888149
accent
#C454D3
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #212754

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

Preview Lab → · Contrast checker → · Palette generator →

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