#212DA9#212DA9

#212DA9 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.194 H 269.4°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#212DA9
RGBrgb(33, 45, 169)
HSLhsl(235, 67%, 40%)
HSVhsv(235, 80%, 66%)
CMYKcmyk(80.5%, 73.4%, 0%, 33.7%)
CIE-LABlab(26.92, 40.57, -66.88)
CIE-LCHlch(26.92, 78.22, 301.24°)
OKLaboklab(38.68% -0.0021 -0.1937)
OKLCHoklch(38.68% 0.194 269.4)
XYZxyz(8.7246, 5.0637, 38.0460)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212DA9 #A99D21
analogous
#2171A9 #212DA9 #5921A9
triadic
#212DA9 #A9212D #2DA921
tetradic
#212DA9 #A92171 #A99D21 #21A959
square
#212DA9 #A92171 #A99D21 #21A959
split-complementary
#212DA9 #A95921 #71A921
monochromatic
#0D1243 #171F76 #212DA9 #313FD7 #646FE1

Accessibility & contrast

On white

10.43
#212DA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212DA9
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212DA9#FFFFFF#000000##FFFFFF
##212DA91.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0039A7
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #212da9;
/* rgb */ color: rgb(33, 45, 169);
/* oklch */ color: oklch(38.7% 0.194 269.4);
Tailwind
colors: {
  custom: {
    50: '#7667c4',
    500: '#212da9',
    950: '#000000',
  },
}
SCSS
$custom: #212da9;
$custom-light: #7667c4;
$custom-dark: #000000;
JSON
{
  "hex": "#212da9",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 234.706,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.19375,
    "h": 269.4
  },
  "luminance": 0.05065
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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