#2E175B#2E175B

#2E175B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.114 H 293.1°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2E175B
RGBrgb(46, 23, 91)
HSLhsl(260, 60%, 22%)
HSVhsv(260, 75%, 36%)
CMYKcmyk(49.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(15.22, 28.90, -36.70)
CIE-LCHlch(15.22, 46.72, 308.22°)
OKLaboklab(28.18% 0.0449 -0.1051)
OKLCHoklch(28.18% 0.114 293.1)
XYZxyz(3.3209, 1.9489, 10.0967)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E175B #445B17
analogous
#17225B #2E175B #50175B
triadic
#2E175B #5B2E17 #175B2E
tetradic
#2E175B #5B1722 #445B17 #175B50
square
#2E175B #5B1722 #445B17 #175B50
split-complementary
#2E175B #5B5017 #225B17
monochromatic
#0C0618 #150B2A #2E175B #47238C #5F30BD

Accessibility & contrast

On white

15.11
#2E175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E175B
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E175B#FFFFFF#000000##FFFFFF
##2E175B1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#212837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e175b;
/* rgb */ color: rgb(46, 23, 91);
/* oklch */ color: oklch(28.2% 0.114 293.1);
Tailwind
colors: {
  custom: {
    50: '#6c568a',
    500: '#2e175b',
    950: '#000000',
  },
}
SCSS
$custom: #2e175b;
$custom-light: #6c568a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e175b",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 260.294,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28183,
    "c": 0.1143,
    "h": 293.1
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#2E175B
secondary
#75923C
accent
#E345AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E175B

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

Preview Lab → · Contrast checker → · Palette generator →

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