#2E185D#2E185D

#2E185D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.116 H 292.1°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2E185D
RGBrgb(46, 24, 93)
HSLhsl(259, 59%, 23%)
HSVhsv(259, 74%, 36%)
CMYKcmyk(50.5%, 74.2%, 0%, 63.5%)
CIE-LABlab(15.61, 28.94, -37.39)
CIE-LCHlch(15.61, 47.28, 307.74°)
OKLaboklab(28.52% 0.0434 -0.1071)
OKLCHoklch(28.52% 0.116 292.1)
XYZxyz(3.4286, 2.0243, 10.5639)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E185D #475D18
analogous
#18255D #2E185D #50185D
triadic
#2E185D #5D2E18 #185D2E
tetradic
#2E185D #5D1825 #475D18 #185D50
square
#2E185D #5D1825 #475D18 #185D50
split-complementary
#2E185D #5D5018 #255D18
monochromatic
#0C0618 #160B2C #2E185D #46258E #5E31BE

Accessibility & contrast

On white

14.95
#2E185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E185D
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E185D#FFFFFF#000000##FFFFFF
##2E185D1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00265C
Tritanopia (blue-blind)
#1F2938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e185d;
/* rgb */ color: rgb(46, 24, 93);
/* oklch */ color: oklch(28.5% 0.116 292.1);
Tailwind
colors: {
  custom: {
    50: '#6c578c',
    500: '#2e185d',
    950: '#000000',
  },
}
SCSS
$custom: #2e185d;
$custom-light: #6c578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e185d",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 259.13,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28524,
    "c": 0.1156,
    "h": 292.1
  },
  "luminance": 0.02024
}

Semantic roles & 50–950 ramp

primary
#2E185D
secondary
#78933D
accent
#E246B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E185D

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

Preview Lab → · Contrast checker → · Palette generator →

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