#2E21A2#2E21A2

#2E21A2 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.193 H 275.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2E21A2
RGBrgb(46, 33, 162)
HSLhsl(246, 66%, 38%)
HSVhsv(246, 80%, 64%)
CMYKcmyk(71.6%, 79.6%, 0%, 36.5%)
CIE-LABlab(24.56, 45.99, -66.50)
CIE-LCHlch(24.56, 80.86, 304.67°)
OKLaboklab(37% 0.0196 -0.1922)
OKLCHoklch(37% 0.193 275.8)
XYZxyz(8.1900, 4.2764, 34.5692)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21A2 #95A221
analogous
#2154A2 #2E21A2 #6F21A2
triadic
#2E21A2 #A22E21 #21A22E
tetradic
#2E21A2 #A22154 #95A221 #21A26F
square
#2E21A2 #A22154 #95A221 #21A26F
split-complementary
#2E21A2 #A26F21 #54A221
monochromatic
#110C3C #20176F #2E21A2 #3D2CD4 #6C5FDE

Accessibility & contrast

On white

11.32
#2E21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2E21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21A2
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21A2#FFFFFF#000000##FFFFFF
##2E21A21.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A6
Deuteranopia (green-blind)
#0035A0
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e21a2;
/* rgb */ color: rgb(46, 33, 162);
/* oklch */ color: oklch(37.0% 0.193 275.8);
Tailwind
colors: {
  custom: {
    50: '#7960bf',
    500: '#2e21a2',
    950: '#000000',
  },
}
SCSS
$custom: #2e21a2;
$custom-light: #7960bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21a2",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 246.047,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36996,
    "c": 0.19324,
    "h": 275.8
  },
  "luminance": 0.04277
}

Semantic roles & 50–950 ramp

primary
#2E21A2
secondary
#B9C35C
accent
#E93FD8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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