#2A21AC#2A21AC

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

Color values

HEX#2A21AC
RGBrgb(42, 33, 172)
HSLhsl(244, 68%, 40%)
HSVhsv(244, 81%, 67%)
CMYKcmyk(75.6%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.44, 48.81, -71.12)
CIE-LCHlch(25.44, 86.26, 304.46°)
OKLaboklab(37.86% 0.0118 -0.2057)
OKLCHoklch(37.86% 0.206 273.3)
XYZxyz(8.9426, 4.5576, 39.4301)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21AC #A3AC21
analogous
#215DAC #2A21AC #7021AC
triadic
#2A21AC #AC2A21 #21AC2A
tetradic
#2A21AC #AC215D #A3AC21 #21AC70
square
#2A21AC #AC215D #A3AC21 #21AC70
split-complementary
#2A21AC #AC7021 #5DAC21
monochromatic
#110D45 #1D1779 #2A21AC #3D32D8 #6E66E2

Accessibility & contrast

On white

10.98
#2A21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2A21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A21AC
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21AC#FFFFFF#000000##FFFFFF
##2A21AC1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a21ac;
/* rgb */ color: rgb(42, 33, 172);
/* oklch */ color: oklch(37.9% 0.206 273.3);
Tailwind
colors: {
  custom: {
    50: '#7a60c6',
    500: '#2a21ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a21ac;
$custom-light: #7a60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21ac",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 243.885,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.37864,
    "c": 0.20608,
    "h": 273.3
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#2A21AC
secondary
#C0C762
accent
#EB3DDF
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2A21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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