#212CA7#212CA7

#212CA7 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.192 H 269.6°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#212CA7
RGBrgb(33, 44, 167)
HSLhsl(235, 67%, 39%)
HSVhsv(235, 80%, 65%)
CMYKcmyk(80.2%, 73.7%, 0%, 34.5%)
CIE-LABlab(26.49, 40.46, -66.38)
CIE-LCHlch(26.49, 77.74, 301.37°)
OKLaboklab(38.31% -0.0014 -0.1923)
OKLCHoklch(38.31% 0.192 269.6)
XYZxyz(8.5005, 4.9137, 37.0522)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212CA7 #A79C21
analogous
#216FA7 #212CA7 #5921A7
triadic
#212CA7 #A7212C #2CA721
tetradic
#212CA7 #A7216F #A79C21 #21A759
square
#212CA7 #A7216F #A79C21 #21A759
split-complementary
#212CA7 #A75921 #6FA721
monochromatic
#0D1141 #171F74 #212CA7 #2F3DD6 #626DE0

Accessibility & contrast

On white

10.59
#212CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#212CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212CA7
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212CA7#FFFFFF#000000##FFFFFF
##212CA71.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212ca7;
/* rgb */ color: rgb(33, 44, 167);
/* oklch */ color: oklch(38.3% 0.192 269.6);
Tailwind
colors: {
  custom: {
    50: '#7566c2',
    500: '#212ca7',
    950: '#000000',
  },
}
SCSS
$custom: #212ca7;
$custom-light: #7566c2;
$custom-dark: #000000;
JSON
{
  "hex": "#212ca7",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 235.075,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38308,
    "c": 0.19229,
    "h": 269.6
  },
  "luminance": 0.04915
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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