#212DA5#212DA5

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

Color values

HEX#212DA5
RGBrgb(33, 45, 165)
HSLhsl(235, 67%, 39%)
HSVhsv(235, 80%, 65%)
CMYKcmyk(80%, 72.7%, 0%, 35.3%)
CIE-LABlab(26.49, 39.15, -65.16)
CIE-LCHlch(26.49, 76.02, 301.00°)
OKLaboklab(38.25% -0.0016 -0.1887)
OKLCHoklch(38.25% 0.189 269.5)
XYZxyz(8.3548, 4.9158, 36.0985)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212DA5 #A59921
analogous
#216FA5 #212DA5 #5721A5
triadic
#212DA5 #A5212D #2DA521
tetradic
#212DA5 #A5216F #A59921 #21A557
square
#212DA5 #A5216F #A59921 #21A557
split-complementary
#212DA5 #A55721 #6FA521
monochromatic
#0D113F #171F72 #212DA5 #2E3DD5 #616CDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212DA5#FFFFFF#000000##FFFFFF
##212DA51.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)
#0045A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #212da5;
/* rgb */ color: rgb(33, 45, 165);
/* oklch */ color: oklch(38.2% 0.189 269.5);
Tailwind
colors: {
  custom: {
    50: '#7567c1',
    500: '#212da5',
    950: '#000000',
  },
}
SCSS
$custom: #212da5;
$custom-light: #7567c1;
$custom-dark: #000000;
JSON
{
  "hex": "#212da5",
  "rgb": {
    "r": 33,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 234.545,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38249,
    "c": 0.18875,
    "h": 269.5
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#212DA5
secondary
#C4BB5E
accent
#DA3EEA
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #212DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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