#212792#212792

#212792 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.171 H 271.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#212792
RGBrgb(33, 39, 146)
HSLhsl(237, 63%, 35%)
HSVhsv(237, 77%, 57%)
CMYKcmyk(77.4%, 73.3%, 0%, 42.7%)
CIE-LABlab(23.17, 36.06, -59.03)
CIE-LCHlch(23.17, 69.17, 301.42°)
OKLaboklab(35.27% 0.0038 -0.1709)
OKLCHoklch(35.27% 0.171 271.3)
XYZxyz(6.5393, 3.8490, 27.5868)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212792 #928C21
analogous
#216092 #212792 #532192
triadic
#212792 #922127 #279221
tetradic
#212792 #922160 #928C21 #219253
square
#212792 #922160 #928C21 #219253
split-complementary
#212792 #925321 #609221
monochromatic
#0A0C2E #161A60 #212792 #2C34C4 #555CD9

Accessibility & contrast

On white

11.86
#212792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#212792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212792
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212792#FFFFFF#000000##FFFFFF
##2127921.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212792;
/* rgb */ color: rgb(33, 39, 146);
/* oklch */ color: oklch(35.3% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#7062b3',
    500: '#212792',
    950: '#000000',
  },
}
SCSS
$custom: #212792;
$custom-light: #7062b3;
$custom-dark: #000000;
JSON
{
  "hex": "#212792",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 236.814,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.17091,
    "h": 271.3
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#212792
secondary
#BCB753
accent
#DD42E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212792

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

Preview Lab → · Contrast checker → · Palette generator →

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