#212CA8#212CA8

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

Color values

HEX#212CA8
RGBrgb(33, 44, 168)
HSLhsl(235, 67%, 39%)
HSVhsv(235, 80%, 66%)
CMYKcmyk(80.4%, 73.8%, 0%, 34.1%)
CIE-LABlab(26.59, 40.81, -66.80)
CIE-LCHlch(26.59, 78.28, 301.42°)
OKLaboklab(38.42% -0.0016 -0.1935)
OKLCHoklch(38.42% 0.194 269.5)
XYZxyz(8.5933, 4.9509, 37.5409)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212CA8 #A89D21
analogous
#2170A8 #212CA8 #5A21A8
triadic
#212CA8 #A8212C #2CA821
tetradic
#212CA8 #A82170 #A89D21 #21A85A
square
#212CA8 #A82170 #A89D21 #21A85A
split-complementary
#212CA8 #A85A21 #70A821
monochromatic
#0D1142 #171F75 #212CA8 #303DD6 #636DE0

Accessibility & contrast

On white

10.55
#212CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#212CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212CA8
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212CA8#FFFFFF#000000##FFFFFF
##212CA81.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212ca8;
/* rgb */ color: rgb(33, 44, 168);
/* oklch */ color: oklch(38.4% 0.194 269.5);
Tailwind
colors: {
  custom: {
    50: '#7566c3',
    500: '#212ca8',
    950: '#000000',
  },
}
SCSS
$custom: #212ca8;
$custom-light: #7566c3;
$custom-dark: #000000;
JSON
{
  "hex": "#212ca8",
  "rgb": {
    "r": 33,
    "g": 44,
    "b": 168
  },
  "hsl": {
    "h": 235.111,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38416,
    "c": 0.19353,
    "h": 269.5
  },
  "luminance": 0.04952
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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