#212394#212394

#212394 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.178 H 271.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#212394
RGBrgb(33, 35, 148)
HSLhsl(239, 64%, 35%)
HSVhsv(239, 78%, 58%)
CMYKcmyk(77.7%, 76.4%, 0%, 42%)
CIE-LABlab(22.52, 39.17, -61.32)
CIE-LCHlch(22.52, 72.76, 302.57°)
OKLaboklab(34.87% 0.0053 -0.1775)
OKLCHoklch(34.87% 0.178 271.7)
XYZxyz(6.5717, 3.6628, 28.3719)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212394 #949221
analogous
#215C94 #212394 #592194
triadic
#212394 #942123 #239421
tetradic
#212394 #94215C #949221 #219459
square
#212394 #94215C #949221 #219459
split-complementary
#212394 #945921 #5C9421
monochromatic
#0B0B30 #161762 #212394 #2C2FC6 #5658D9

Accessibility & contrast

On white

12.12
#212394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#212394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212394
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212394#FFFFFF#000000##FFFFFF
##2123941.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003092
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212394;
/* rgb */ color: rgb(33, 35, 148);
/* oklch */ color: oklch(34.9% 0.178 271.7);
Tailwind
colors: {
  custom: {
    50: '#715fb5',
    500: '#212394',
    950: '#000000',
  },
}
SCSS
$custom: #212394;
$custom-light: #715fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#212394",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 238.957,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.17761,
    "h": 271.7
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#212394
secondary
#BDBB54
accent
#E441E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212394

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

Preview Lab → · Contrast checker → · Palette generator →

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