#2E174F#2E174F

#2E174F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.098 H 298.5°. Best body text is #FFFFFF at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#2E174F
RGBrgb(46, 23, 79)
HSLhsl(265, 55%, 20%)
HSVhsv(265, 71%, 31%)
CMYKcmyk(41.8%, 70.9%, 0%, 69%)
CIE-LABlab(14.16, 25.21, -30.29)
CIE-LCHlch(14.16, 39.41, 309.78°)
OKLaboklab(27.1% 0.0468 -0.0863)
OKLCHoklch(27.1% 0.098 298.5)
XYZxyz(2.8440, 1.7581, 7.5851)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E174F #384F17
analogous
#171C4F #2E174F #4A174F
triadic
#2E174F #4F2E17 #174F2E
tetradic
#2E174F #4F171C #384F17 #174F4A
square
#2E174F #4F171C #384F17 #174F4A
split-complementary
#2E174F #4F4A17 #1C4F17
monochromatic
#0E0718 #120920 #2E174F #4A257E #6533AE

Accessibility & contrast

On white

15.54
#2E174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E174F
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E174F#FFFFFF#000000##FFFFFF
##2E174F1.0015.541.3515.54
#FFFFFF15.541.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#262430
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e174f;
/* rgb */ color: rgb(46, 23, 79);
/* oklch */ color: oklch(27.1% 0.098 298.5);
Tailwind
colors: {
  custom: {
    50: '#6a5581',
    500: '#2e174f',
    950: '#000000',
  },
}
SCSS
$custom: #2e174f;
$custom-light: #6a5581;
$custom-dark: #000000;
JSON
{
  "hex": "#2e174f",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 264.643,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.27096,
    "c": 0.09814,
    "h": 298.5
  },
  "luminance": 0.01758
}

Semantic roles & 50–950 ramp

primary
#2E174F
secondary
#68863C
accent
#DE4AA1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E174F

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

Preview Lab → · Contrast checker → · Palette generator →

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