#212494#212494

#212494 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.177 H 271.6°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#212494
RGBrgb(33, 36, 148)
HSLhsl(238, 64%, 35%)
HSVhsv(238, 78%, 58%)
CMYKcmyk(77.7%, 75.7%, 0%, 42%)
CIE-LABlab(22.73, 38.58, -60.98)
CIE-LCHlch(22.73, 72.16, 302.32°)
OKLaboklab(35.02% 0.0048 -0.1765)
OKLCHoklch(35.02% 0.177 271.6)
XYZxyz(6.6016, 3.7225, 28.3818)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212494 #949121
analogous
#215D94 #212494 #572194
triadic
#212494 #942124 #249421
tetradic
#212494 #94215D #949121 #219457
square
#212494 #94215D #949121 #219457
split-complementary
#212494 #945721 #5D9421
monochromatic
#0B0C30 #161862 #212494 #2C30C6 #5659D9

Accessibility & contrast

On white

12.04
#212494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212494 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212494
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212494#FFFFFF#000000##FFFFFF
##2124941.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003192
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212494;
/* rgb */ color: rgb(33, 36, 148);
/* oklch */ color: oklch(35.0% 0.177 271.6);
Tailwind
colors: {
  custom: {
    50: '#7160b5',
    500: '#212494',
    950: '#000000',
  },
}
SCSS
$custom: #212494;
$custom-light: #7160b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212494",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 238.435,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35021,
    "c": 0.17661,
    "h": 271.6
  },
  "luminance": 0.03723
}

Semantic roles & 50–950 ramp

primary
#212494
secondary
#BDBA54
accent
#E241E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212494

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

Preview Lab → · Contrast checker → · Palette generator →

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