#212DA8#212DA8

#212DA8 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.193 H 269.4°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#212DA8
RGBrgb(33, 45, 168)
HSLhsl(235, 67%, 39%)
HSVhsv(235, 80%, 66%)
CMYKcmyk(80.4%, 73.2%, 0%, 34.1%)
CIE-LABlab(26.81, 40.21, -66.45)
CIE-LCHlch(26.81, 77.67, 301.18°)
OKLaboklab(38.57% -0.002 -0.1925)
OKLCHoklch(38.57% 0.193 269.4)
XYZxyz(8.6310, 5.0263, 37.5535)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212DA8 #A89C21
analogous
#2170A8 #212DA8 #5921A8
triadic
#212DA8 #A8212D #2DA821
tetradic
#212DA8 #A82170 #A89C21 #21A859
square
#212DA8 #A82170 #A89C21 #21A859
split-complementary
#212DA8 #A85921 #70A821
monochromatic
#0D1242 #171F75 #212DA8 #303FD6 #636EE0

Accessibility & contrast

On white

10.47
#212DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#212DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212DA8
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212DA8#FFFFFF#000000##FFFFFF
##212DA81.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212da8;
/* rgb */ color: rgb(33, 45, 168);
/* oklch */ color: oklch(38.6% 0.193 269.4);
Tailwind
colors: {
  custom: {
    50: '#7567c3',
    500: '#212da8',
    950: '#000000',
  },
}
SCSS
$custom: #212da8;
$custom-light: #7567c3;
$custom-dark: #000000;
JSON
{
  "hex": "#212da8",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 234.667,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3857,
    "c": 0.1925,
    "h": 269.4
  },
  "luminance": 0.05027
}

Semantic roles & 50–950 ramp

primary
#212DA8
secondary
#C5BC5F
accent
#DB3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #212DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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