#2E176F#2E176F

#2E176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.140 H 286.5°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#2E176F
RGBrgb(46, 23, 111)
HSLhsl(256, 66%, 26%)
HSVhsv(256, 79%, 44%)
CMYKcmyk(58.6%, 79.3%, 0%, 56.5%)
CIE-LABlab(17.18, 35.15, -46.68)
CIE-LCHlch(17.18, 58.43, 306.98°)
OKLaboklab(30.18% 0.0399 -0.1343)
OKLCHoklch(30.18% 0.14 286.5)
XYZxyz(4.3015, 2.3411, 15.2611)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E176F #586F17
analogous
#172C6F #2E176F #5A176F
triadic
#2E176F #6F2E17 #176F2E
tetradic
#2E176F #6F172C #586F17 #176F5A
square
#2E176F #6F172C #586F17 #176F5A
split-complementary
#2E176F #6F5A17 #2C6F17
monochromatic
#0B0519 #190C3C #2E176F #4322A2 #582DD3

Accessibility & contrast

On white

14.30
#2E176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2E176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E176F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E176F#FFFFFF#000000##FFFFFF
##2E176F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#103042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2e176f;
/* rgb */ color: rgb(46, 23, 111);
/* oklch */ color: oklch(30.2% 0.140 286.5);
Tailwind
colors: {
  custom: {
    50: '#6f5799',
    500: '#2e176f',
    950: '#000000',
  },
}
SCSS
$custom: #2e176f;
$custom-light: #6f5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2e176f",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 255.682,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30178,
    "c": 0.14015,
    "h": 286.5
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#2E176F
secondary
#8AA53D
accent
#E93FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E176F

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

Preview Lab → · Contrast checker → · Palette generator →

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