#2E175D#2E175D

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

Color values

HEX#2E175D
RGBrgb(46, 23, 93)
HSLhsl(260, 60%, 23%)
HSVhsv(260, 75%, 36%)
CMYKcmyk(50.5%, 75.3%, 0%, 63.5%)
CIE-LABlab(15.40, 29.53, -37.74)
CIE-LCHlch(15.40, 47.92, 308.04°)
OKLaboklab(28.37% 0.0445 -0.1082)
OKLCHoklch(28.37% 0.117 292.4)
XYZxyz(3.4083, 1.9838, 10.5571)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E175D #465D17
analogous
#17235D #2E175D #51175D
triadic
#2E175D #5D2E17 #175D2E
tetradic
#2E175D #5D1723 #465D17 #175D51
square
#2E175D #5D1723 #465D17 #175D51
split-complementary
#2E175D #5D5117 #235D17
monochromatic
#0C0619 #160B2C #2E175D #46238E #5F2FBF

Accessibility & contrast

On white

15.03
#2E175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E175D
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E175D#FFFFFF#000000##FFFFFF
##2E175D1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#202938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e175d;
/* rgb */ color: rgb(46, 23, 93);
/* oklch */ color: oklch(28.4% 0.117 292.4);
Tailwind
colors: {
  custom: {
    50: '#6c568c',
    500: '#2e175d',
    950: '#000000',
  },
}
SCSS
$custom: #2e175d;
$custom-light: #6c568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e175d",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 259.714,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28372,
    "c": 0.11695,
    "h": 292.4
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#2E175D
secondary
#77943C
accent
#E344AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E175D

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

Preview Lab → · Contrast checker → · Palette generator →

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