#2E1E65#2E1E65

#2E1E65 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.118 H 287.5°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2E1E65
RGBrgb(46, 30, 101)
HSLhsl(254, 54%, 26%)
HSVhsv(254, 70%, 40%)
CMYKcmyk(54.5%, 70.3%, 0%, 60.4%)
CIE-LABlab(17.69, 27.84, -39.32)
CIE-LCHlch(17.69, 48.17, 305.30°)
OKLaboklab(30.24% 0.0355 -0.1128)
OKLCHoklch(30.24% 0.118 287.5)
XYZxyz(3.9393, 2.4488, 12.5745)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1E65 #55651E
analogous
#1E3165 #2E1E65 #511E65
triadic
#2E1E65 #652E1E #1E652E
tetradic
#2E1E65 #651E31 #55651E #1E6551
square
#2E1E65 #651E31 #55651E #1E6551
split-complementary
#2E1E65 #65511E #31651E
monochromatic
#0B0718 #191036 #2E1E65 #432C94 #593AC3

Accessibility & contrast

On white

14.10
#2E1E65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2E1E65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1E65
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1E65#FFFFFF#000000##FFFFFF
##2E1E651.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D67
Deuteranopia (green-blind)
#002964
Tritanopia (blue-blind)
#1A303E
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2e1e65;
/* rgb */ color: rgb(46, 30, 101);
/* oklch */ color: oklch(30.2% 0.118 287.5);
Tailwind
colors: {
  custom: {
    50: '#6d5b92',
    500: '#2e1e65',
    950: '#000000',
  },
}
SCSS
$custom: #2e1e65;
$custom-light: #6d5b92;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1e65",
  "rgb": {
    "r": 46,
    "g": 30,
    "b": 101
  },
  "hsl": {
    "h": 253.521,
    "s": 54.198,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30237,
    "c": 0.11826,
    "h": 287.5
  },
  "luminance": 0.02449
}

Semantic roles & 50–950 ramp

primary
#2E1E65
secondary
#879A45
accent
#DE4ABC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07040D
muted
#7A797E

Preview Lab

Preview with #2E1E65

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

Preview Lab → · Contrast checker → · Palette generator →

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