#2E176E#2E176E

#2E176E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.139 H 286.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2E176E
RGBrgb(46, 23, 110)
HSLhsl(256, 65%, 26%)
HSVhsv(256, 79%, 43%)
CMYKcmyk(58.2%, 79.1%, 0%, 56.9%)
CIE-LABlab(17.08, 34.83, -46.20)
CIE-LCHlch(17.08, 57.86, 307.02°)
OKLaboklab(30.07% 0.0402 -0.133)
OKLCHoklch(30.07% 0.139 286.8)
XYZxyz(4.2467, 2.3192, 14.9727)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E176E #576E17
analogous
#172B6E #2E176E #59176E
triadic
#2E176E #6E2E17 #176E2E
tetradic
#2E176E #6E172B #576E17 #176E59
square
#2E176E #6E172B #576E17 #176E59
split-complementary
#2E176E #6E5917 #2B6E17
monochromatic
#0B0519 #190C3B #2E176E #4322A1 #582CD3

Accessibility & contrast

On white

14.35
#2E176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2E176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E176E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E176E#FFFFFF#000000##FFFFFF
##2E176E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00286C
Tritanopia (blue-blind)
#112F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e176e;
/* rgb */ color: rgb(46, 23, 110);
/* oklch */ color: oklch(30.1% 0.139 286.8);
Tailwind
colors: {
  custom: {
    50: '#6f5798',
    500: '#2e176e',
    950: '#000000',
  },
}
SCSS
$custom: #2e176e;
$custom-light: #6f5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2e176e",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 255.862,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30073,
    "c": 0.13889,
    "h": 286.8
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#2E176E
secondary
#89A43D
accent
#E83FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E176E

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

Preview Lab → · Contrast checker → · Palette generator →

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