#2D21AB#2D21AB

#2D21AB is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.9% C 0.204 H 274.5°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#2D21AB
RGBrgb(45, 33, 171)
HSLhsl(245, 68%, 40%)
HSVhsv(245, 81%, 67%)
CMYKcmyk(73.7%, 80.7%, 0%, 32.9%)
CIE-LABlab(25.52, 48.72, -70.37)
CIE-LCHlch(25.52, 85.59, 304.70°)
OKLaboklab(37.94% 0.0159 -0.2035)
OKLCHoklch(37.94% 0.204 274.5)
XYZxyz(8.9743, 4.5850, 38.9322)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21AB #9FAB21
analogous
#215AAB #2D21AB #7221AB
triadic
#2D21AB #AB2D21 #21AB2D
tetradic
#2D21AB #AB215A #9FAB21 #21AB72
square
#2D21AB #AB215A #9FAB21 #21AB72
split-complementary
#2D21AB #AB7221 #5AAB21
monochromatic
#120D44 #1F1778 #2D21AB #4032D7 #7065E1

Accessibility & contrast

On white

10.95
#2D21AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D21AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21AB
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21AB#FFFFFF#000000##FFFFFF
##2D21AB1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AF
Deuteranopia (green-blind)
#0036A9
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d21ab;
/* rgb */ color: rgb(45, 33, 171);
/* oklch */ color: oklch(37.9% 0.204 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2d21ab',
    950: '#000000',
  },
}
SCSS
$custom: #2d21ab;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21ab",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 245.217,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.3794,
    "c": 0.20414,
    "h": 274.5
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#2D21AB
secondary
#BEC761
accent
#EB3DDB
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2D21AB

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

Preview Lab → · Contrast checker → · Palette generator →

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