#2E174E#2E174E

#2E174E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.097 H 299.0°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#2E174E
RGBrgb(46, 23, 78)
HSLhsl(265, 54%, 20%)
HSVhsv(265, 71%, 31%)
CMYKcmyk(41%, 70.5%, 0%, 69.4%)
CIE-LABlab(14.08, 24.91, -29.74)
CIE-LCHlch(14.08, 38.79, 309.95°)
OKLaboklab(27.01% 0.0469 -0.0846)
OKLCHoklch(27.01% 0.097 299)
XYZxyz(2.8079, 1.7437, 7.3949)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E174E #374E17
analogous
#171C4E #2E174E #4A174E
triadic
#2E174E #4E2E17 #174E2E
tetradic
#2E174E #4E171C #374E17 #174E4A
square
#2E174E #4E171C #374E17 #174E4A
split-complementary
#2E174E #4E4A17 #1C4E17
monochromatic
#0E0718 #12091F #2E174E #4A257D #6633AD

Accessibility & contrast

On white

15.57
#2E174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E174E
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E174E#FFFFFF#000000##FFFFFF
##2E174E1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#272330
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e174e;
/* rgb */ color: rgb(46, 23, 78);
/* oklch */ color: oklch(27.0% 0.097 299.0);
Tailwind
colors: {
  custom: {
    50: '#6a5580',
    500: '#2e174e',
    950: '#000000',
  },
}
SCSS
$custom: #2e174e;
$custom-light: #6a5580;
$custom-dark: #000000;
JSON
{
  "hex": "#2e174e",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 265.091,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2701,
    "c": 0.09678,
    "h": 299
  },
  "luminance": 0.01744
}

Semantic roles & 50–950 ramp

primary
#2E174E
secondary
#66853C
accent
#DE4AA0
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E174E

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

Preview Lab → · Contrast checker → · Palette generator →

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