#2D21A8#2D21A8

#2D21A8 is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.6% C 0.201 H 274.8°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#2D21A8
RGBrgb(45, 33, 168)
HSLhsl(245, 67%, 39%)
HSVhsv(245, 80%, 66%)
CMYKcmyk(73.2%, 80.4%, 0%, 34.1%)
CIE-LABlab(25.17, 47.79, -69.13)
CIE-LCHlch(25.17, 84.04, 304.66°)
OKLaboklab(37.6% 0.0167 -0.1999)
OKLCHoklch(37.6% 0.201 274.8)
XYZxyz(8.6916, 4.4719, 37.4433)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21A8 #9CA821
analogous
#2159A8 #2D21A8 #7021A8
triadic
#2D21A8 #A82D21 #21A82D
tetradic
#2D21A8 #A82159 #9CA821 #21A870
square
#2D21A8 #A82159 #9CA821 #21A870
split-complementary
#2D21A8 #A87021 #59A821
monochromatic
#120D42 #1F1775 #2D21A8 #3F30D6 #6E63E0

Accessibility & contrast

On white

11.08
#2D21A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2D21A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21A8
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21A8#FFFFFF#000000##FFFFFF
##2D21A81.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d21a8;
/* rgb */ color: rgb(45, 33, 168);
/* oklch */ color: oklch(37.6% 0.201 274.8);
Tailwind
colors: {
  custom: {
    50: '#7a60c3',
    500: '#2d21a8',
    950: '#000000',
  },
}
SCSS
$custom: #2d21a8;
$custom-light: #7a60c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21a8",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 245.333,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37601,
    "c": 0.20061,
    "h": 274.8
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D21A8

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

Preview Lab → · Contrast checker → · Palette generator →

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