#2E185E#2E185E

#2E185E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.117 H 291.7°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#2E185E
RGBrgb(46, 24, 94)
HSLhsl(259, 59%, 23%)
HSVhsv(259, 74%, 37%)
CMYKcmyk(51.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(15.71, 29.25, -37.91)
CIE-LCHlch(15.71, 47.88, 307.66°)
OKLaboklab(28.62% 0.0432 -0.1087)
OKLCHoklch(28.62% 0.117 291.7)
XYZxyz(3.4732, 2.0421, 10.7987)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E185E #485E18
analogous
#18255E #2E185E #51185E
triadic
#2E185E #5E2E18 #185E2E
tetradic
#2E185E #5E1825 #485E18 #185E51
square
#2E185E #5E1825 #485E18 #185E51
split-complementary
#2E185E #5E5118 #255E18
monochromatic
#0C0618 #160C2D #2E185E #46248F #5E31C0

Accessibility & contrast

On white

14.91
#2E185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2E185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E185E
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E185E#FFFFFF#000000##FFFFFF
##2E185E1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#1F2A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e185e;
/* rgb */ color: rgb(46, 24, 94);
/* oklch */ color: oklch(28.6% 0.117 291.7);
Tailwind
colors: {
  custom: {
    50: '#6c578c',
    500: '#2e185e',
    950: '#000000',
  },
}
SCSS
$custom: #2e185e;
$custom-light: #6c578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e185e",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 258.857,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28619,
    "c": 0.11694,
    "h": 291.7
  },
  "luminance": 0.02042
}

Semantic roles & 50–950 ramp

primary
#2E185E
secondary
#79943D
accent
#E345B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E185E

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

Preview Lab → · Contrast checker → · Palette generator →

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