#212CA4#212CA4

#212CA4 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.0% C 0.189 H 269.7°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#212CA4
RGBrgb(33, 44, 164)
HSLhsl(235, 66%, 39%)
HSVhsv(235, 80%, 64%)
CMYKcmyk(79.9%, 73.2%, 0%, 35.7%)
CIE-LABlab(26.17, 39.41, -65.09)
CIE-LCHlch(26.17, 76.09, 301.19°)
OKLaboklab(37.99% -0.001 -0.1885)
OKLCHoklch(37.99% 0.189 269.7)
XYZxyz(8.2264, 4.8041, 35.6085)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212CA4 #A49921
analogous
#216DA4 #212CA4 #5721A4
triadic
#212CA4 #A4212C #2CA421
tetradic
#212CA4 #A4216D #A49921 #21A457
square
#212CA4 #A4216D #A49921 #21A457
split-complementary
#212CA4 #A45721 #6DA421
monochromatic
#0C113E #171E71 #212CA4 #2D3BD5 #606BDF

Accessibility & contrast

On white

10.71
#212CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#212CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212CA4
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212CA4#FFFFFF#000000##FFFFFF
##212CA41.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004E65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212ca4;
/* rgb */ color: rgb(33, 44, 164);
/* oklch */ color: oklch(38.0% 0.189 269.7);
Tailwind
colors: {
  custom: {
    50: '#7466c0',
    500: '#212ca4',
    950: '#000000',
  },
}
SCSS
$custom: #212ca4;
$custom-light: #7466c0;
$custom-dark: #000000;
JSON
{
  "hex": "#212ca4",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 234.962,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37986,
    "c": 0.18853,
    "h": 269.7
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#212CA4
secondary
#C4BB5D
accent
#DB3EE9
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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