#2E1757#2E1757

#2E1757 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.109 H 294.8°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#2E1757
RGBrgb(46, 23, 87)
HSLhsl(262, 58%, 22%)
HSVhsv(262, 74%, 34%)
CMYKcmyk(47.1%, 73.6%, 0%, 65.9%)
CIE-LABlab(14.85, 27.66, -34.60)
CIE-LCHlch(14.85, 44.30, 308.64°)
OKLaboklab(27.81% 0.0457 -0.0989)
OKLCHoklch(27.81% 0.109 294.8)
XYZxyz(3.1529, 1.8817, 9.2121)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1757 #405717
analogous
#172057 #2E1757 #4E1757
triadic
#2E1757 #572E17 #17572E
tetradic
#2E1757 #571720 #405717 #17574E
square
#2E1757 #571720 #405717 #17574E
split-complementary
#2E1757 #574E17 #205717
monochromatic
#0D0618 #140A27 #2E1757 #482487 #6131B8

Accessibility & contrast

On white

15.26
#2E1757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E1757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1757
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1757#FFFFFF#000000##FFFFFF
##2E17571.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#232735
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1757;
/* rgb */ color: rgb(46, 23, 87);
/* oklch */ color: oklch(27.8% 0.109 294.8);
Tailwind
colors: {
  custom: {
    50: '#6b5687',
    500: '#2e1757',
    950: '#000000',
  },
}
SCSS
$custom: #2e1757;
$custom-light: #6b5687;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1757",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 261.563,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2781,
    "c": 0.10898,
    "h": 294.8
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#2E1757
secondary
#708E3C
accent
#E146AA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1757

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

Preview Lab → · Contrast checker → · Palette generator →

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