#2E1570#2E1570

#2E1570 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.143 H 286.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2E1570
RGBrgb(46, 21, 112)
HSLhsl(256, 68%, 26%)
HSVhsv(256, 81%, 44%)
CMYKcmyk(58.9%, 81.2%, 0%, 56.1%)
CIE-LABlab(16.93, 36.50, -47.75)
CIE-LCHlch(16.93, 60.10, 307.39°)
OKLaboklab(30.03% 0.0411 -0.1375)
OKLCHoklch(30.03% 0.144 286.7)
XYZxyz(4.3186, 2.2868, 15.5399)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1570 #577015
analogous
#152970 #2E1570 #5B1570
triadic
#2E1570 #702E15 #15702E
tetradic
#2E1570 #701529 #577015 #15705B
square
#2E1570 #701529 #577015 #15705B
split-complementary
#2E1570 #705B15 #297015
monochromatic
#0B051A #190B3C #2E1570 #431FA4 #5829D7

Accessibility & contrast

On white

14.41
#2E1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1570
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1570#FFFFFF#000000##FFFFFF
##2E15701.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00276E
Tritanopia (blue-blind)
#0F2F42
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1570;
/* rgb */ color: rgb(46, 21, 112);
/* oklch */ color: oklch(30.0% 0.143 286.7);
Tailwind
colors: {
  custom: {
    50: '#70569a',
    500: '#2e1570',
    950: '#000000',
  },
}
SCSS
$custom: #2e1570;
$custom-light: #70569a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1570",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 256.484,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30029,
    "c": 0.1435,
    "h": 286.7
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#2E1570
secondary
#89A63B
accent
#EB3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E1570

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

Preview Lab → · Contrast checker → · Palette generator →

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