#2E21AC#2E21AC

#2E21AC is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.205 H 274.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2E21AC
RGBrgb(46, 33, 172)
HSLhsl(246, 68%, 40%)
HSVhsv(246, 81%, 67%)
CMYKcmyk(73.3%, 80.8%, 0%, 32.5%)
CIE-LABlab(25.70, 49.11, -70.67)
CIE-LCHlch(25.70, 86.05, 304.80°)
OKLaboklab(38.12% 0.017 -0.2043)
OKLCHoklch(38.12% 0.205 274.7)
XYZxyz(9.1145, 4.6462, 39.4382)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E21AC #9FAC21
analogous
#2159AC #2E21AC #7421AC
triadic
#2E21AC #AC2E21 #21AC2E
tetradic
#2E21AC #AC2159 #9FAC21 #21AC74
square
#2E21AC #AC2159 #9FAC21 #21AC74
split-complementary
#2E21AC #AC7421 #59AC21
monochromatic
#130D45 #201779 #2E21AC #4232D8 #7166E2

Accessibility & contrast

On white

10.88
#2E21AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2E21AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E21AC
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E21AC#FFFFFF#000000##FFFFFF
##2E21AC1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e21ac;
/* rgb */ color: rgb(46, 33, 172);
/* oklch */ color: oklch(38.1% 0.205 274.7);
Tailwind
colors: {
  custom: {
    50: '#7c60c6',
    500: '#2e21ac',
    950: '#000000',
  },
}
SCSS
$custom: #2e21ac;
$custom-light: #7c60c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2e21ac",
  "rgb": {
    "r": 46,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 245.612,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3812,
    "c": 0.20505,
    "h": 274.7
  },
  "luminance": 0.04647
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E21AC

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

Preview Lab → · Contrast checker → · Palette generator →

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