#2D21AD#2D21AD

#2D21AD is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.2% C 0.206 H 274.3°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2D21AD
RGBrgb(45, 33, 173)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 68%)
CMYKcmyk(74%, 80.9%, 0%, 32.2%)
CIE-LABlab(25.75, 49.34, -71.19)
CIE-LCHlch(25.75, 86.62, 304.72°)
OKLaboklab(38.17% 0.0154 -0.2059)
OKLCHoklch(38.17% 0.206 274.3)
XYZxyz(9.1664, 4.6618, 39.9438)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21AD #A1AD21
analogous
#215BAD #2D21AD #7321AD
triadic
#2D21AD #AD2D21 #21AD2D
tetradic
#2D21AD #AD215B #A1AD21 #21AD73
square
#2D21AD #AD215B #A1AD21 #21AD73
split-complementary
#2D21AD #AD7321 #5BAD21
monochromatic
#120D46 #20177A #2D21AD #4133D8 #7166E2

Accessibility & contrast

On white

10.87
#2D21AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2D21AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21AD
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21AD#FFFFFF#000000##FFFFFF
##2D21AD1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B1
Deuteranopia (green-blind)
#0036AB
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d21ad;
/* rgb */ color: rgb(45, 33, 173);
/* oklch */ color: oklch(38.2% 0.206 274.3);
Tailwind
colors: {
  custom: {
    50: '#7c60c7',
    500: '#2d21ad',
    950: '#000000',
  },
}
SCSS
$custom: #2d21ad;
$custom-light: #7c60c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21ad",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 173
  },
  "hsl": {
    "h": 245.143,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38168,
    "c": 0.20647,
    "h": 274.3
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#2D21AD
secondary
#BFC762
accent
#EB3DDC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D21AD

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

Preview Lab → · Contrast checker → · Palette generator →

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