#2E175F#2E175F

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

Color values

HEX#2E175F
RGBrgb(46, 23, 95)
HSLhsl(259, 61%, 23%)
HSVhsv(259, 76%, 37%)
CMYKcmyk(51.6%, 75.8%, 0%, 62.7%)
CIE-LABlab(15.59, 30.15, -38.77)
CIE-LCHlch(15.59, 49.11, 307.87°)
OKLaboklab(28.57% 0.0441 -0.1112)
OKLCHoklch(28.57% 0.12 291.6)
XYZxyz(3.4981, 2.0197, 11.0298)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E175F #485F17
analogous
#17245F #2E175F #52175F
triadic
#2E175F #5F2E17 #175F2E
tetradic
#2E175F #5F1724 #485F17 #175F52
square
#2E175F #5F1724 #485F17 #175F52
split-complementary
#2E175F #5F5217 #245F17
monochromatic
#0C0619 #160B2E #2E175F #462390 #5E2FC2

Accessibility & contrast

On white

14.96
#2E175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E175F
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E175F#FFFFFF#000000##FFFFFF
##2E175F1.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#1E2A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e175f;
/* rgb */ color: rgb(46, 23, 95);
/* oklch */ color: oklch(28.6% 0.120 291.6);
Tailwind
colors: {
  custom: {
    50: '#6c568d',
    500: '#2e175f',
    950: '#000000',
  },
}
SCSS
$custom: #2e175f;
$custom-light: #6c568d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e175f",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 259.167,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28565,
    "c": 0.11958,
    "h": 291.6
  },
  "luminance": 0.0202
}

Semantic roles & 50–950 ramp

primary
#2E175F
secondary
#79963C
accent
#E444B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E175F

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

Preview Lab → · Contrast checker → · Palette generator →

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