#2E21A0#2E21A0

#2E21A0 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.191 H 276.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2E21A0
RGBrgb(46, 33, 160)
HSLhsl(246, 66%, 38%)
HSVhsv(246, 79%, 63%)
CMYKcmyk(71.2%, 79.4%, 0%, 37.3%)
CIE-LABlab(24.34, 45.36, -65.65)
CIE-LCHlch(24.34, 79.80, 304.64°)
OKLaboklab(36.77% 0.0201 -0.1898)
OKLCHoklch(36.77% 0.191 276)
XYZxyz(8.0137, 4.2059, 33.6404)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21A0 #93A021
analogous
#2153A0 #2E21A0 #6E21A0
triadic
#2E21A0 #A02E21 #21A02E
tetradic
#2E21A0 #A02153 #93A021 #21A06E
square
#2E21A0 #A02153 #93A021 #21A06E
split-complementary
#2E21A0 #A06E21 #53A021
monochromatic
#110C3B #1F176D #2E21A0 #3D2BD3 #6B5EDE

Accessibility & contrast

On white

11.40
#2E21A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2E21A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21A0
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21A0#FFFFFF#000000##FFFFFF
##2E21A01.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2e21a0;
/* rgb */ color: rgb(46, 33, 160);
/* oklch */ color: oklch(36.8% 0.191 276.0);
Tailwind
colors: {
  custom: {
    50: '#7960bd',
    500: '#2e21a0',
    950: '#000000',
  },
}
SCSS
$custom: #2e21a0;
$custom-light: #7960bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21a0",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 160
  },
  "hsl": {
    "h": 246.142,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36773,
    "c": 0.19085,
    "h": 276
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#2E21A0
secondary
#B8C25B
accent
#E93FD7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2E21A0

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

Preview Lab → · Contrast checker → · Palette generator →

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