#2D21A4#2D21A4

#2D21A4 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.196 H 275.2°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2D21A4
RGBrgb(45, 33, 164)
HSLhsl(245, 66%, 39%)
HSVhsv(245, 80%, 64%)
CMYKcmyk(72.6%, 79.9%, 0%, 35.7%)
CIE-LABlab(24.72, 46.54, -67.46)
CIE-LCHlch(24.72, 81.96, 304.60°)
OKLaboklab(37.15% 0.0177 -0.1951)
OKLCHoklch(37.15% 0.196 275.2)
XYZxyz(8.3247, 4.3251, 35.5109)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21A4 #98A421
analogous
#2156A4 #2D21A4 #6E21A4
triadic
#2D21A4 #A42D21 #21A42D
tetradic
#2D21A4 #A42156 #98A421 #21A46E
square
#2D21A4 #A42156 #98A421 #21A46E
split-complementary
#2D21A4 #A46E21 #56A421
monochromatic
#110C3E #1F1771 #2D21A4 #3D2DD5 #6C60DF

Accessibility & contrast

On white

11.26
#2D21A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D21A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D21A4
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21A4#FFFFFF#000000##FFFFFF
##2D21A41.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0035A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d21a4;
/* rgb */ color: rgb(45, 33, 164);
/* oklch */ color: oklch(37.1% 0.196 275.2);
Tailwind
colors: {
  custom: {
    50: '#7960c0',
    500: '#2d21a4',
    950: '#000000',
  },
}
SCSS
$custom: #2d21a4;
$custom-light: #7960c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21a4",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 164
  },
  "hsl": {
    "h": 245.496,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.3715,
    "c": 0.19587,
    "h": 275.2
  },
  "luminance": 0.04326
}

Semantic roles & 50–950 ramp

primary
#2D21A4
secondary
#BAC45D
accent
#E93EDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D21A4

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

Preview Lab → · Contrast checker → · Palette generator →

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