#2E1751#2E1751

#2E1751 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.101 H 297.5°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#2E1751
RGBrgb(46, 23, 81)
HSLhsl(264, 56%, 20%)
HSVhsv(264, 72%, 32%)
CMYKcmyk(43.2%, 71.6%, 0%, 68.2%)
CIE-LABlab(14.33, 25.82, -31.38)
CIE-LCHlch(14.33, 40.64, 309.45°)
OKLaboklab(27.27% 0.0466 -0.0895)
OKLCHoklch(27.27% 0.101 297.5)
XYZxyz(2.9179, 1.7877, 7.9743)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1751 #3A5117
analogous
#171D51 #2E1751 #4B1751
triadic
#2E1751 #512E17 #17512E
tetradic
#2E1751 #51171D #3A5117 #17514B
square
#2E1751 #51171D #3A5117 #17514B
split-complementary
#2E1751 #514B17 #1D5117
monochromatic
#0E0718 #130921 #2E1751 #492581 #6432B0

Accessibility & contrast

On white

15.47
#2E1751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E1751 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1751
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1751#FFFFFF#000000##FFFFFF
##2E17511.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#002450
Tritanopia (blue-blind)
#252431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1751;
/* rgb */ color: rgb(46, 23, 81);
/* oklch */ color: oklch(27.3% 0.101 297.5);
Tailwind
colors: {
  custom: {
    50: '#6a5582',
    500: '#2e1751',
    950: '#000000',
  },
}
SCSS
$custom: #2e1751;
$custom-light: #6a5582;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1751",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 81
  },
  "hsl": {
    "h": 263.793,
    "s": 55.769,
    "l": 20.392
  },
  "oklch": {
    "l": 0.2727,
    "c": 0.10086,
    "h": 297.5
  },
  "luminance": 0.01788
}

Semantic roles & 50–950 ramp

primary
#2E1751
secondary
#6A883C
accent
#DF49A3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1751

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

Preview Lab → · Contrast checker → · Palette generator →

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