#2E21B2#2E21B2

#2E21B2 is a dark, highly saturated blue. Relative luminance 0.049; OKLCH L 38.8% C 0.212 H 274.2°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2E21B2
RGBrgb(46, 33, 178)
HSLhsl(245, 69%, 41%)
HSVhsv(245, 81%, 70%)
CMYKcmyk(74.2%, 81.5%, 0%, 30.2%)
CIE-LABlab(26.40, 50.95, -73.12)
CIE-LCHlch(26.40, 89.12, 304.87°)
OKLaboklab(38.8% 0.0154 -0.2115)
OKLCHoklch(38.8% 0.212 274.2)
XYZxyz(9.7038, 4.8819, 42.5417)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21B2 #A5B221
analogous
#215DB2 #2E21B2 #7721B2
triadic
#2E21B2 #B22E21 #21B22E
tetradic
#2E21B2 #B2215D #A5B221 #21B277
square
#2E21B2 #B2215D #A5B221 #21B277
split-complementary
#2E21B2 #B27721 #5DB221
monochromatic
#130E4B #21177E #2E21B2 #4536DA #756AE3

Accessibility & contrast

On white

10.62
#2E21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E21B2
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21B2#FFFFFF#000000##FFFFFF
##2E21B21.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B6
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004F6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2e21b2;
/* rgb */ color: rgb(46, 33, 178);
/* oklch */ color: oklch(38.8% 0.212 274.2);
Tailwind
colors: {
  custom: {
    50: '#7d61ca',
    500: '#2e21b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e21b2;
$custom-light: #7d61ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21b2",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 245.379,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38803,
    "c": 0.21202,
    "h": 274.2
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#2E21B2
secondary
#C0C966
accent
#EC3CDC
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #2E21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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