#2E175A#2E175A

#2E175A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.113 H 293.5°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#2E175A
RGBrgb(46, 23, 90)
HSLhsl(261, 59%, 22%)
HSVhsv(261, 74%, 35%)
CMYKcmyk(48.9%, 74.4%, 0%, 64.7%)
CIE-LABlab(15.12, 28.60, -36.18)
CIE-LCHlch(15.12, 46.12, 308.32°)
OKLaboklab(28.09% 0.0451 -0.1036)
OKLCHoklch(28.09% 0.113 293.5)
XYZxyz(3.2781, 1.9317, 9.8710)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E175A #435A17
analogous
#17225A #2E175A #50175A
triadic
#2E175A #5A2E17 #175A2E
tetradic
#2E175A #5A1722 #435A17 #175A50
square
#2E175A #5A1722 #435A17 #175A50
split-complementary
#2E175A #5A5017 #225A17
monochromatic
#0C0618 #150B29 #2E175A #47238B #6030BB

Accessibility & contrast

On white

15.15
#2E175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E175A
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E175A#FFFFFF#000000##FFFFFF
##2E175A1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#212836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e175a;
/* rgb */ color: rgb(46, 23, 90);
/* oklch */ color: oklch(28.1% 0.113 293.5);
Tailwind
colors: {
  custom: {
    50: '#6c5689',
    500: '#2e175a',
    950: '#000000',
  },
}
SCSS
$custom: #2e175a;
$custom-light: #6c5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2e175a",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 260.597,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28088,
    "c": 0.11297,
    "h": 293.5
  },
  "luminance": 0.01932
}

Semantic roles & 50–950 ramp

primary
#2E175A
secondary
#74913C
accent
#E245AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E175A

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

Preview Lab → · Contrast checker → · Palette generator →

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