#212994#212994

#212994 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.171 H 270.8°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#212994
RGBrgb(33, 41, 148)
HSLhsl(236, 64%, 35%)
HSVhsv(236, 78%, 58%)
CMYKcmyk(77.7%, 72.3%, 0%, 42%)
CIE-LABlab(23.82, 35.54, -59.18)
CIE-LCHlch(23.82, 69.03, 300.99°)
OKLaboklab(35.8% 0.0025 -0.1713)
OKLCHoklch(35.8% 0.171 270.8)
XYZxyz(6.7636, 4.0466, 28.4358)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212994 #948C21
analogous
#216294 #212994 #522194
triadic
#212994 #942129 #299421
tetradic
#212994 #942162 #948C21 #219452
square
#212994 #942162 #948C21 #219452
split-complementary
#212994 #945221 #629421
monochromatic
#0B0D30 #161B62 #212994 #2C37C6 #565FD9

Accessibility & contrast

On white

11.61
#212994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#212994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212994
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212994#FFFFFF#000000##FFFFFF
##2129941.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #212994;
/* rgb */ color: rgb(33, 41, 148);
/* oklch */ color: oklch(35.8% 0.171 270.8);
Tailwind
colors: {
  custom: {
    50: '#7163b5',
    500: '#212994',
    950: '#000000',
  },
}
SCSS
$custom: #212994;
$custom-light: #7163b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212994",
  "rgb": {
    "r": 33,
    "g": 41,
    "b": 148
  },
  "hsl": {
    "h": 235.826,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35802,
    "c": 0.17133,
    "h": 270.8
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#212994
secondary
#BDB654
accent
#DB41E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212994

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

Preview Lab → · Contrast checker → · Palette generator →

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