#212292#212292

#212292 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.176 H 272.0°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#212292
RGBrgb(33, 34, 146)
HSLhsl(239, 63%, 35%)
HSVhsv(239, 77%, 57%)
CMYKcmyk(77.4%, 76.7%, 0%, 42.7%)
CIE-LABlab(22.10, 39.06, -60.79)
CIE-LCHlch(22.10, 72.26, 302.72°)
OKLaboklab(34.5% 0.0061 -0.176)
OKLCHoklch(34.5% 0.176 272)
XYZxyz(6.3858, 3.5420, 27.5357)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212292 #929121
analogous
#215A92 #212292 #582192
triadic
#212292 #922122 #229221
tetradic
#212292 #92215A #929121 #219258
square
#212292 #92215A #929121 #219258
split-complementary
#212292 #925821 #5A9221
monochromatic
#0A0B2E #161660 #212292 #2C2EC4 #5556D9

Accessibility & contrast

On white

12.29
#212292 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#212292 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212292
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212292#FFFFFF#000000##FFFFFF
##2122921.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#002F90
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212292;
/* rgb */ color: rgb(33, 34, 146);
/* oklch */ color: oklch(34.5% 0.176 272.0);
Tailwind
colors: {
  custom: {
    50: '#715fb3',
    500: '#212292',
    950: '#000000',
  },
}
SCSS
$custom: #212292;
$custom-light: #715fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#212292",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 146
  },
  "hsl": {
    "h": 239.469,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.17608,
    "h": 272
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#212292
secondary
#BCBB53
accent
#E542E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212292

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

Preview Lab → · Contrast checker → · Palette generator →

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