#2E173E#2E173E

#2E173E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.075 H 309.3°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#2E173E
RGBrgb(46, 23, 62)
HSLhsl(275, 46%, 17%)
HSVhsv(275, 63%, 24%)
CMYKcmyk(25.8%, 62.9%, 0%, 75.7%)
CIE-LABlab(12.87, 20.23, -20.55)
CIE-LCHlch(12.87, 28.84, 314.56°)
OKLaboklab(25.74% 0.0473 -0.0577)
OKLCHoklch(25.74% 0.075 309.3)
XYZxyz(2.3024, 1.5415, 4.7327)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E173E #273E17
analogous
#1B173E #2E173E #3E173B
triadic
#2E173E #3E2E17 #173E2E
tetradic
#2E173E #3E1B17 #273E17 #173B3E
square
#2E173E #3E1B17 #273E17 #173B3E
split-complementary
#2E173E #3B3E17 #173E1B
monochromatic
#110816 #110816 #2E173E #4F286B #703897

Accessibility & contrast

On white

16.05
#2E173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E173E
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E173E#FFFFFF#000000##FFFFFF
##2E173E1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B203F
Deuteranopia (green-blind)
#13223D
Tritanopia (blue-blind)
#2C1E27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e173e;
/* rgb */ color: rgb(46, 23, 62);
/* oklch */ color: oklch(25.7% 0.075 309.3);
Tailwind
colors: {
  custom: {
    50: '#685573',
    500: '#2e173e',
    950: '#000000',
  },
}
SCSS
$custom: #2e173e;
$custom-light: #685573;
$custom-dark: #000000;
JSON
{
  "hex": "#2e173e",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 275.385,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2574,
    "c": 0.07457,
    "h": 309.3
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

primary
#2E173E
secondary
#53753C
accent
#D65288
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2E173E

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

Preview Lab → · Contrast checker → · Palette generator →

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