#2A21C2#2A21C2

#2A21C2 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.4% C 0.231 H 271.6°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2A21C2
RGBrgb(42, 33, 194)
HSLhsl(243, 71%, 45%)
HSVhsv(243, 83%, 76%)
CMYKcmyk(78.4%, 83%, 0%, 23.9%)
CIE-LABlab(28.04, 55.53, -79.88)
CIE-LCHlch(28.04, 97.29, 304.80°)
OKLaboklab(40.42% 0.0064 -0.2311)
OKLCHoklch(40.42% 0.231 271.6)
XYZxyz(11.2330, 5.4737, 51.4930)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21C2 #B9C221
analogous
#2169C2 #2A21C2 #7B21C2
triadic
#2A21C2 #C22A21 #21C22A
tetradic
#2A21C2 #C22169 #B9C221 #21C27B
square
#2A21C2 #C22169 #B9C221 #21C27B
split-complementary
#2A21C2 #C27B21 #69C221
monochromatic
#130F59 #1F188E #2A21C2 #4A41DF #7C76E8

Accessibility & contrast

On white

10.02
#2A21C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A21C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A21C2
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21C2#FFFFFF#000000##FFFFFF
##2A21C21.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003ABF
Tritanopia (blue-blind)
#005674
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a21c2;
/* rgb */ color: rgb(42, 33, 194);
/* oklch */ color: oklch(40.4% 0.231 271.6);
Tailwind
colors: {
  custom: {
    50: '#8062d6',
    500: '#2a21c2',
    950: '#000000',
  },
}
SCSS
$custom: #2a21c2;
$custom-light: #8062d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21c2",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 194
  },
  "hsl": {
    "h": 243.354,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40423,
    "c": 0.23123,
    "h": 271.6
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

primary
#2A21C2
secondary
#CACF70
accent
#EE3AE4
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0515
muted
#7D7A83

Preview Lab

Preview with #2A21C2

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

Preview Lab → · Contrast checker → · Palette generator →

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