#2A21BE#2A21BE

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

Color values

HEX#2A21BE
RGBrgb(42, 33, 190)
HSLhsl(243, 70%, 44%)
HSVhsv(243, 83%, 75%)
CMYKcmyk(77.9%, 82.6%, 0%, 25.5%)
CIE-LABlab(27.56, 54.33, -78.32)
CIE-LCHlch(27.56, 95.32, 304.75°)
OKLaboklab(39.95% 0.0074 -0.2266)
OKLCHoklch(39.95% 0.227 271.9)
XYZxyz(10.7898, 5.2965, 49.1589)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A21BE #B5BE21
analogous
#2167BE #2A21BE #7821BE
triadic
#2A21BE #BE2A21 #21BE2A
tetradic
#2A21BE #BE2167 #B5BE21 #21BE78
square
#2A21BE #BE2167 #B5BE21 #21BE78
split-complementary
#2A21BE #BE7821 #67BE21
monochromatic
#130F56 #1E188A #2A21BE #483FDE #7973E7

Accessibility & contrast

On white

10.20
#2A21BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A21BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A21BE
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A21BE#FFFFFF#000000##FFFFFF
##2A21BE1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C2
Deuteranopia (green-blind)
#0039BB
Tritanopia (blue-blind)
#005472
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a21be;
/* rgb */ color: rgb(42, 33, 190);
/* oklch */ color: oklch(40.0% 0.227 271.9);
Tailwind
colors: {
  custom: {
    50: '#7f61d3',
    500: '#2a21be',
    950: '#000000',
  },
}
SCSS
$custom: #2a21be;
$custom-light: #7f61d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a21be",
  "rgb": {
    "r": 42,
    "g": 33,
    "b": 190
  },
  "hsl": {
    "h": 243.439,
    "s": 70.404,
    "l": 43.725
  },
  "oklch": {
    "l": 0.39953,
    "c": 0.22674,
    "h": 271.9
  },
  "luminance": 0.05298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A21BE

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

Preview Lab → · Contrast checker → · Palette generator →

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