#2E1758#2E1758

#2E1758 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.110 H 294.3°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2E1758
RGBrgb(46, 23, 88)
HSLhsl(261, 59%, 22%)
HSVhsv(261, 74%, 35%)
CMYKcmyk(47.7%, 73.9%, 0%, 65.5%)
CIE-LABlab(14.94, 27.98, -35.13)
CIE-LCHlch(14.94, 44.91, 308.53°)
OKLaboklab(27.9% 0.0455 -0.1005)
OKLCHoklch(27.9% 0.11 294.3)
XYZxyz(3.1941, 1.8981, 9.4287)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1758 #415817
analogous
#172158 #2E1758 #4F1758
triadic
#2E1758 #582E17 #17582E
tetradic
#2E1758 #581721 #415817 #17584F
square
#2E1758 #581721 #415817 #17584F
split-complementary
#2E1758 #584F17 #215817
monochromatic
#0D0618 #150A27 #2E1758 #472489 #6130B9

Accessibility & contrast

On white

15.22
#2E1758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1758
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1758#FFFFFF#000000##FFFFFF
##2E17581.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#222735
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e1758;
/* rgb */ color: rgb(46, 23, 88);
/* oklch */ color: oklch(27.9% 0.110 294.3);
Tailwind
colors: {
  custom: {
    50: '#6b5688',
    500: '#2e1758',
    950: '#000000',
  },
}
SCSS
$custom: #2e1758;
$custom-light: #6b5688;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1758",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 261.231,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27902,
    "c": 0.11031,
    "h": 294.3
  },
  "luminance": 0.01898
}

Semantic roles & 50–950 ramp

primary
#2E1758
secondary
#728F3C
accent
#E246AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1758

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

Preview Lab → · Contrast checker → · Palette generator →

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