#2E175E#2E175E

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

Color values

HEX#2E175E
RGBrgb(46, 23, 94)
HSLhsl(259, 61%, 23%)
HSVhsv(259, 76%, 37%)
CMYKcmyk(51.1%, 75.5%, 0%, 63.1%)
CIE-LABlab(15.50, 29.84, -38.25)
CIE-LCHlch(15.50, 48.51, 307.95°)
OKLaboklab(28.47% 0.0443 -0.1097)
OKLCHoklch(28.47% 0.118 292)
XYZxyz(3.4529, 2.0017, 10.7919)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E175E #475E17
analogous
#17235E #2E175E #51175E
triadic
#2E175E #5E2E17 #175E2E
tetradic
#2E175E #5E1723 #475E17 #175E51
square
#2E175E #5E1723 #475E17 #175E51
split-complementary
#2E175E #5E5117 #235E17
monochromatic
#0C0619 #160B2D #2E175E #46238F #5E2FC0

Accessibility & contrast

On white

15.00
#2E175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E175E
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E175E#FFFFFF#000000##FFFFFF
##2E175E1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e175e;
/* rgb */ color: rgb(46, 23, 94);
/* oklch */ color: oklch(28.5% 0.118 292.0);
Tailwind
colors: {
  custom: {
    50: '#6c568c',
    500: '#2e175e',
    950: '#000000',
  },
}
SCSS
$custom: #2e175e;
$custom-light: #6c568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e175e",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 259.437,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28468,
    "c": 0.11827,
    "h": 292
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#2E175E
secondary
#78953C
accent
#E444B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E175E

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

Preview Lab → · Contrast checker → · Palette generator →

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