#2E21BD#2E21BD

#2E21BD is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 40.1% C 0.225 H 273.2°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#2E21BD
RGBrgb(46, 33, 189)
HSLhsl(245, 70%, 44%)
HSVhsv(245, 83%, 74%)
CMYKcmyk(75.7%, 82.5%, 0%, 25.9%)
CIE-LABlab(27.69, 54.27, -77.52)
CIE-LCHlch(27.69, 94.63, 304.99°)
OKLaboklab(40.07% 0.0125 -0.2242)
OKLCHoklch(40.07% 0.225 273.2)
XYZxyz(10.8528, 5.3415, 48.5933)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21BD #B0BD21
analogous
#2162BD #2E21BD #7C21BD
triadic
#2E21BD #BD2E21 #21BD2E
tetradic
#2E21BD #BD2162 #B0BD21 #21BD7C
square
#2E21BD #BD2162 #B0BD21 #21BD7C
split-complementary
#2E21BD #BD7C21 #62BD21
monochromatic
#150F55 #211889 #2E21BD #4B3EDD #7C72E6

Accessibility & contrast

On white

10.15
#2E21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2E21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21BD
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21BD#FFFFFF#000000##FFFFFF
##2E21BD1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C1
Deuteranopia (green-blind)
#003ABA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2e21bd;
/* rgb */ color: rgb(46, 33, 189);
/* oklch */ color: oklch(40.1% 0.225 273.2);
Tailwind
colors: {
  custom: {
    50: '#8062d2',
    500: '#2e21bd',
    950: '#000000',
  },
}
SCSS
$custom: #2e21bd;
$custom-light: #8062d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21bd",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 245,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40069,
    "c": 0.22457,
    "h": 273.2
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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