#2D21A5#2D21A5

#2D21A5 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.197 H 275.1°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2D21A5
RGBrgb(45, 33, 165)
HSLhsl(245, 67%, 39%)
HSVhsv(245, 80%, 65%)
CMYKcmyk(72.7%, 80%, 0%, 35.3%)
CIE-LABlab(24.83, 46.85, -67.88)
CIE-LCHlch(24.83, 82.48, 304.61°)
OKLaboklab(37.26% 0.0174 -0.1963)
OKLCHoklch(37.26% 0.197 275.1)
XYZxyz(8.4153, 4.3614, 35.9884)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D21A5 #99A521
analogous
#2157A5 #2D21A5 #6F21A5
triadic
#2D21A5 #A52D21 #21A52D
tetradic
#2D21A5 #A52157 #99A521 #21A56F
square
#2D21A5 #A52157 #99A521 #21A56F
split-complementary
#2D21A5 #A56F21 #57A521
monochromatic
#110D3F #1F1772 #2D21A5 #3D2ED5 #6C61DF

Accessibility & contrast

On white

11.22
#2D21A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D21A5
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D21A5#FFFFFF#000000##FFFFFF
##2D21A51.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A9
Deuteranopia (green-blind)
#0035A3
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d21a5;
/* rgb */ color: rgb(45, 33, 165);
/* oklch */ color: oklch(37.3% 0.197 275.1);
Tailwind
colors: {
  custom: {
    50: '#7a60c1',
    500: '#2d21a5',
    950: '#000000',
  },
}
SCSS
$custom: #2d21a5;
$custom-light: #7a60c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d21a5",
  "rgb": {
    "r": 45,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 245.455,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37262,
    "c": 0.19706,
    "h": 275.1
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#2D21A5
secondary
#BBC45E
accent
#EA3EDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2D21A5

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

Preview Lab → · Contrast checker → · Palette generator →

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