#2A21BD#2A21BD

#2A21BD is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.8% C 0.226 H 271.9°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2A21BD
RGBrgb(42, 33, 189)
HSLhsl(243, 70%, 44%)
HSVhsv(243, 83%, 74%)
CMYKcmyk(77.8%, 82.5%, 0%, 25.9%)
CIE-LABlab(27.44, 54.03, -77.93)
CIE-LCHlch(27.44, 94.82, 304.73°)
OKLaboklab(39.84% 0.0076 -0.2255)
OKLCHoklch(39.84% 0.226 271.9)
XYZxyz(10.6809, 5.2529, 48.5852)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21BD #B4BD21
analogous
#2166BD #2A21BD #7821BD
triadic
#2A21BD #BD2A21 #21BD2A
tetradic
#2A21BD #BD2166 #B4BD21 #21BD78
square
#2A21BD #BD2166 #B4BD21 #21BD78
split-complementary
#2A21BD #BD7821 #66BD21
monochromatic
#130F55 #1E1889 #2A21BD #473EDD #7972E6

Accessibility & contrast

On white

10.24
#2A21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2A21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A21BD
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21BD#FFFFFF#000000##FFFFFF
##2A21BD1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C1
Deuteranopia (green-blind)
#0039BA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a21bd;
/* rgb */ color: rgb(42, 33, 189);
/* oklch */ color: oklch(39.8% 0.226 271.9);
Tailwind
colors: {
  custom: {
    50: '#7e61d2',
    500: '#2a21bd',
    950: '#000000',
  },
}
SCSS
$custom: #2a21bd;
$custom-light: #7e61d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21bd",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 243.462,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.39836,
    "c": 0.22561,
    "h": 271.9
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#2A21BD
secondary
#C8CD6D
accent
#ED3BE3
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2A21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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