#2E21B3#2E21B3

#2E21B3 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.9% C 0.213 H 274.1°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2E21B3
RGBrgb(46, 33, 179)
HSLhsl(245, 69%, 42%)
HSVhsv(245, 82%, 70%)
CMYKcmyk(74.3%, 81.6%, 0%, 29.8%)
CIE-LABlab(26.51, 51.25, -73.52)
CIE-LCHlch(26.51, 89.62, 304.88°)
OKLaboklab(38.92% 0.0151 -0.2126)
OKLCHoklch(38.92% 0.213 274.1)
XYZxyz(9.8046, 4.9222, 43.0725)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21B3 #A6B321
analogous
#215DB3 #2E21B3 #7721B3
triadic
#2E21B3 #B32E21 #21B32E
tetradic
#2E21B3 #B3215D #A6B321 #21B377
square
#2E21B3 #B3215D #A6B321 #21B377
split-complementary
#2E21B3 #B37721 #5DB321
monochromatic
#130E4C #21177F #2E21B3 #4637DA #766BE4

Accessibility & contrast

On white

10.58
#2E21B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2E21B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21B3
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21B3#FFFFFF#000000##FFFFFF
##2E21B31.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B7
Deuteranopia (green-blind)
#0038B1
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2e21b3;
/* rgb */ color: rgb(46, 33, 179);
/* oklch */ color: oklch(38.9% 0.213 274.1);
Tailwind
colors: {
  custom: {
    50: '#7d61cb',
    500: '#2e21b3',
    950: '#000000',
  },
}
SCSS
$custom: #2e21b3;
$custom-light: #7d61cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21b3",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 179
  },
  "hsl": {
    "h": 245.342,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.38917,
    "c": 0.21317,
    "h": 274.1
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#2E21B3
secondary
#C1CA66
accent
#EC3CDC
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2E21B3

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

Preview Lab → · Contrast checker → · Palette generator →

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