#2E21AB#2E21AB

#2E21AB is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.0% C 0.204 H 274.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#2E21AB
RGBrgb(46, 33, 171)
HSLhsl(246, 68%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(73.1%, 80.7%, 0%, 32.9%)
CIE-LABlab(25.59, 48.80, -70.25)
CIE-LCHlch(25.59, 85.54, 304.78°)
OKLaboklab(38.01% 0.0172 -0.2032)
OKLCHoklch(38.01% 0.204 274.8)
XYZxyz(9.0188, 4.6079, 38.9343)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21AB #9EAB21
analogous
#2159AB #2E21AB #7321AB
triadic
#2E21AB #AB2E21 #21AB2E
tetradic
#2E21AB #AB2159 #9EAB21 #21AB73
square
#2E21AB #AB2159 #9EAB21 #21AB73
split-complementary
#2E21AB #AB7321 #59AB21
monochromatic
#120D44 #201778 #2E21AB #4132D7 #7165E1

Accessibility & contrast

On white

10.93
#2E21AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2E21AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21AB
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21AB#FFFFFF#000000##FFFFFF
##2E21AB1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AF
Deuteranopia (green-blind)
#0036A9
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2e21ab;
/* rgb */ color: rgb(46, 33, 171);
/* oklch */ color: oklch(38.0% 0.204 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b60c5',
    500: '#2e21ab',
    950: '#000000',
  },
}
SCSS
$custom: #2e21ab;
$custom-light: #7b60c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21ab",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 245.652,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.38007,
    "c": 0.20389,
    "h": 274.8
  },
  "luminance": 0.04609
}

Semantic roles & 50–950 ramp

primary
#2E21AB
secondary
#BDC761
accent
#EB3DDA
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2E21AB

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

Preview Lab → · Contrast checker → · Palette generator →

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