#2E21BB#2E21BB

#2E21BB is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.8% C 0.222 H 273.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#2E21BB
RGBrgb(46, 33, 187)
HSLhsl(245, 70%, 43%)
HSVhsv(245, 82%, 73%)
CMYKcmyk(75.4%, 82.4%, 0%, 26.7%)
CIE-LABlab(27.45, 53.67, -76.73)
CIE-LCHlch(27.45, 93.63, 304.97°)
OKLaboklab(39.84% 0.013 -0.2219)
OKLCHoklch(39.84% 0.222 273.4)
XYZxyz(10.6372, 5.2553, 47.4578)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21BB #AEBB21
analogous
#2161BB #2E21BB #7B21BB
triadic
#2E21BB #BB2E21 #21BB2E
tetradic
#2E21BB #BB2161 #AEBB21 #21BB7B
square
#2E21BB #BB2161 #AEBB21 #21BB7B
split-complementary
#2E21BB #BB7B21 #61BB21
monochromatic
#140F53 #211887 #2E21BB #4A3DDD #7A71E6

Accessibility & contrast

On white

10.24
#2E21BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2E21BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21BB
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21BB#FFFFFF#000000##FFFFFF
##2E21BB1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BF
Deuteranopia (green-blind)
#0039B8
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e21bb;
/* rgb */ color: rgb(46, 33, 187);
/* oklch */ color: oklch(39.8% 0.222 273.4);
Tailwind
colors: {
  custom: {
    50: '#7f61d1',
    500: '#2e21bb',
    950: '#000000',
  },
}
SCSS
$custom: #2e21bb;
$custom-light: #7f61d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21bb",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 187
  },
  "hsl": {
    "h": 245.065,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39837,
    "c": 0.2223,
    "h": 273.4
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

primary
#2E21BB
secondary
#C4CC6B
accent
#ED3BDE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0514
muted
#7D7A83

Preview Lab

Preview with #2E21BB

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

Preview Lab → · Contrast checker → · Palette generator →

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