#212CA9#212CA9

#212CA9 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.195 H 269.5°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#212CA9
RGBrgb(33, 44, 169)
HSLhsl(235, 67%, 40%)
HSVhsv(235, 80%, 66%)
CMYKcmyk(80.5%, 74%, 0%, 33.7%)
CIE-LABlab(26.70, 41.16, -67.23)
CIE-LCHlch(26.70, 78.83, 301.48°)
OKLaboklab(38.52% -0.0017 -0.1948)
OKLCHoklch(38.52% 0.195 269.5)
XYZxyz(8.6869, 4.9883, 38.0334)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212CA9 #A99E21
analogous
#2170A9 #212CA9 #5A21A9
triadic
#212CA9 #A9212C #2CA921
tetradic
#212CA9 #A92170 #A99E21 #21A95A
square
#212CA9 #A92170 #A99E21 #21A95A
split-complementary
#212CA9 #A95A21 #70A921
monochromatic
#0D1143 #171F76 #212CA9 #313ED7 #646EE1

Accessibility & contrast

On white

10.51
#212CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#212CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212CA9
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212CA9#FFFFFF#000000##FFFFFF
##212CA91.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0038A7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212ca9;
/* rgb */ color: rgb(33, 44, 169);
/* oklch */ color: oklch(38.5% 0.195 269.5);
Tailwind
colors: {
  custom: {
    50: '#7666c4',
    500: '#212ca9',
    950: '#000000',
  },
}
SCSS
$custom: #212ca9;
$custom-light: #7666c4;
$custom-dark: #000000;
JSON
{
  "hex": "#212ca9",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 235.147,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38524,
    "c": 0.19477,
    "h": 269.5
  },
  "luminance": 0.04989
}

Semantic roles & 50–950 ramp

primary
#212CA9
secondary
#C6BE60
accent
#DC3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212CA9

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

Preview Lab → · Contrast checker → · Palette generator →

#212CA9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva