#2D21A9#2D21A9

#2D21A9 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.7% C 0.202 H 274.7°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D21A9
RGBrgb(45, 33, 169)
HSLhsl(245, 67%, 40%)
HSVhsv(245, 80%, 66%)
CMYKcmyk(73.4%, 80.5%, 0%, 33.7%)
CIE-LABlab(25.29, 48.10, -69.55)
CIE-LCHlch(25.29, 84.56, 304.67°)
OKLaboklab(37.71% 0.0164 -0.2011)
OKLCHoklch(37.71% 0.202 274.7)
XYZxyz(8.7851, 4.5093, 37.9358)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21A9 #9DA921
analogous
#2159A9 #2D21A9 #7121A9
triadic
#2D21A9 #A92D21 #21A92D
tetradic
#2D21A9 #A92159 #9DA921 #21A971
square
#2D21A9 #A92159 #9DA921 #21A971
split-complementary
#2D21A9 #A97121 #59A921
monochromatic
#120D43 #1F1776 #2D21A9 #3F31D7 #6F64E1

Accessibility & contrast

On white

11.04
#2D21A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D21A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21A9
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21A9#FFFFFF#000000##FFFFFF
##2D21A91.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d21a9;
/* rgb */ color: rgb(45, 33, 169);
/* oklch */ color: oklch(37.7% 0.202 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b60c4',
    500: '#2d21a9',
    950: '#000000',
  },
}
SCSS
$custom: #2d21a9;
$custom-light: #7b60c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21a9",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 169
  },
  "hsl": {
    "h": 245.294,
    "s": 67.327,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.20179,
    "h": 274.7
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#2D21A9
secondary
#BDC660
accent
#EA3EDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D21A9

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

Preview Lab → · Contrast checker → · Palette generator →

#2D21A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva