#2A21AA#2A21AA

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

Color values

HEX#2A21AA
RGBrgb(42, 33, 170)
HSLhsl(244, 67%, 40%)
HSVhsv(244, 81%, 67%)
CMYKcmyk(75.3%, 80.6%, 0%, 33.3%)
CIE-LABlab(25.20, 48.19, -70.30)
CIE-LCHlch(25.20, 85.23, 304.43°)
OKLaboklab(37.64% 0.0123 -0.2034)
OKLCHoklch(37.64% 0.204 273.4)
XYZxyz(8.7520, 4.4813, 38.4262)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21AA #A1AA21
analogous
#215CAA #2A21AA #6F21AA
triadic
#2A21AA #AA2A21 #21AA2A
tetradic
#2A21AA #AA215C #A1AA21 #21AA6F
square
#2A21AA #AA215C #A1AA21 #21AA6F
split-complementary
#2A21AA #AA6F21 #5CAA21
monochromatic
#110D43 #1D1777 #2A21AA #3C31D7 #6D64E1

Accessibility & contrast

On white

11.07
#2A21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A21AA
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21AA#FFFFFF#000000##FFFFFF
##2A21AA1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AE
Deuteranopia (green-blind)
#0035A8
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a21aa;
/* rgb */ color: rgb(42, 33, 170);
/* oklch */ color: oklch(37.6% 0.204 273.4);
Tailwind
colors: {
  custom: {
    50: '#7a60c5',
    500: '#2a21aa',
    950: '#000000',
  },
}
SCSS
$custom: #2a21aa;
$custom-light: #7a60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21aa",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 243.942,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37635,
    "c": 0.20373,
    "h": 273.4
  },
  "luminance": 0.04482
}

Semantic roles & 50–950 ramp

primary
#2A21AA
secondary
#C0C661
accent
#EA3DDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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