#2E1E60#2E1E60

#2E1E60 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.111 H 289.0°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#2E1E60
RGBrgb(46, 30, 96)
HSLhsl(255, 52%, 25%)
HSVhsv(255, 69%, 38%)
CMYKcmyk(52.1%, 68.7%, 0%, 62.4%)
CIE-LABlab(17.24, 26.19, -36.73)
CIE-LCHlch(17.24, 45.11, 305.49°)
OKLaboklab(29.78% 0.0362 -0.1052)
OKLCHoklch(29.78% 0.111 289)
XYZxyz(3.7017, 2.3538, 11.3233)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E60 #50601E
analogous
#1E2F60 #2E1E60 #4F1E60
triadic
#2E1E60 #602E1E #1E602E
tetradic
#2E1E60 #601E2F #50601E #1E604F
square
#2E1E60 #601E2F #50601E #1E604F
split-complementary
#2E1E60 #604F1E #2F601E
monochromatic
#0B0717 #180F31 #2E1E60 #442D8F #5B3BBD

Accessibility & contrast

On white

14.28
#2E1E60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E1E60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E60
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E60#FFFFFF#000000##FFFFFF
##2E1E601.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#1D2E3C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e1e60;
/* rgb */ color: rgb(46, 30, 96);
/* oklch */ color: oklch(29.8% 0.111 289.0);
Tailwind
colors: {
  custom: {
    50: '#6c5b8e',
    500: '#2e1e60',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e60;
$custom-light: #6c5b8e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e60",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 96
  },
  "hsl": {
    "h": 254.545,
    "s": 52.381,
    "l": 24.706
  },
  "oklch": {
    "l": 0.2978,
    "c": 0.11126,
    "h": 289
  },
  "luminance": 0.02354
}

Semantic roles & 50–950 ramp

primary
#2E1E60
secondary
#819545
accent
#DC4CB9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #2E1E60

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

Preview Lab → · Contrast checker → · Palette generator →

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