#212CA5#212CA5

#212CA5 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.190 H 269.6°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#212CA5
RGBrgb(33, 44, 165)
HSLhsl(235, 67%, 39%)
HSVhsv(235, 80%, 65%)
CMYKcmyk(80%, 73.3%, 0%, 35.3%)
CIE-LABlab(26.28, 39.76, -65.52)
CIE-LCHlch(26.28, 76.64, 301.25°)
OKLaboklab(38.09% -0.0012 -0.1898)
OKLCHoklch(38.09% 0.19 269.6)
XYZxyz(8.3171, 4.8404, 36.0860)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212CA5 #A59A21
analogous
#216EA5 #212CA5 #5821A5
triadic
#212CA5 #A5212C #2CA521
tetradic
#212CA5 #A5216E #A59A21 #21A558
square
#212CA5 #A5216E #A59A21 #21A558
split-complementary
#212CA5 #A55821 #6EA521
monochromatic
#0D113F #171E72 #212CA5 #2E3CD5 #616CDF

Accessibility & contrast

On white

10.67
#212CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#212CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212CA5
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212CA5#FFFFFF#000000##FFFFFF
##212CA51.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #212ca5;
/* rgb */ color: rgb(33, 44, 165);
/* oklch */ color: oklch(38.1% 0.190 269.6);
Tailwind
colors: {
  custom: {
    50: '#7566c1',
    500: '#212ca5',
    950: '#000000',
  },
}
SCSS
$custom: #212ca5;
$custom-light: #7566c1;
$custom-dark: #000000;
JSON
{
  "hex": "#212ca5",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 235,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38093,
    "c": 0.18979,
    "h": 269.6
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#212CA5
secondary
#C4BC5E
accent
#DB3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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