#212294#212294

#212294 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.179 H 271.8°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#212294
RGBrgb(33, 34, 148)
HSLhsl(239, 64%, 35%)
HSVhsv(239, 78%, 58%)
CMYKcmyk(77.7%, 77%, 0%, 42%)
CIE-LABlab(22.32, 39.75, -61.66)
CIE-LCHlch(22.32, 73.36, 302.81°)
OKLaboklab(34.73% 0.0057 -0.1785)
OKLCHoklch(34.73% 0.179 271.8)
XYZxyz(6.5427, 3.6048, 28.3622)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212294 #949321
analogous
#215B94 #212294 #592194
triadic
#212294 #942122 #229421
tetradic
#212294 #94215B #949321 #219459
square
#212294 #94215B #949321 #219459
split-complementary
#212294 #945921 #5B9421
monochromatic
#0B0B30 #161762 #212294 #2C2DC6 #5657D9

Accessibility & contrast

On white

12.20
#212294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212294
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212294#FFFFFF#000000##FFFFFF
##2122941.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212294;
/* rgb */ color: rgb(33, 34, 148);
/* oklch */ color: oklch(34.7% 0.179 271.8);
Tailwind
colors: {
  custom: {
    50: '#715fb5',
    500: '#212294',
    950: '#000000',
  },
}
SCSS
$custom: #212294;
$custom-light: #715fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#212294",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 239.478,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.34729,
    "c": 0.17859,
    "h": 271.8
  },
  "luminance": 0.03606
}

Semantic roles & 50–950 ramp

primary
#212294
secondary
#BDBC54
accent
#E541E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212294

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

Preview Lab → · Contrast checker → · Palette generator →

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