#212DA7#212DA7

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

Color values

HEX#212DA7
RGBrgb(33, 45, 167)
HSLhsl(235, 67%, 39%)
HSVhsv(235, 80%, 65%)
CMYKcmyk(80.2%, 73.1%, 0%, 34.5%)
CIE-LABlab(26.70, 39.86, -66.02)
CIE-LCHlch(26.70, 77.12, 301.12°)
OKLaboklab(38.46% -0.0018 -0.1912)
OKLCHoklch(38.46% 0.191 269.5)
XYZxyz(8.5382, 4.9891, 37.0647)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212DA7 #A79B21
analogous
#2170A7 #212DA7 #5821A7
triadic
#212DA7 #A7212D #2DA721
tetradic
#212DA7 #A72170 #A79B21 #21A758
square
#212DA7 #A72170 #A79B21 #21A758
split-complementary
#212DA7 #A75821 #70A721
monochromatic
#0D1141 #171F74 #212DA7 #2F3ED6 #626EE0

Accessibility & contrast

On white

10.51
#212DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#212DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212DA7
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212DA7#FFFFFF#000000##FFFFFF
##212DA71.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212da7;
/* rgb */ color: rgb(33, 45, 167);
/* oklch */ color: oklch(38.5% 0.191 269.5);
Tailwind
colors: {
  custom: {
    50: '#7567c2',
    500: '#212da7',
    950: '#000000',
  },
}
SCSS
$custom: #212da7;
$custom-light: #7567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#212da7",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 234.627,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38463,
    "c": 0.19126,
    "h": 269.5
  },
  "luminance": 0.0499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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