#2E176A#2E176A

#2E176A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.134 H 288.0°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2E176A
RGBrgb(46, 23, 106)
HSLhsl(257, 64%, 25%)
HSVhsv(257, 78%, 42%)
CMYKcmyk(56.6%, 78.3%, 0%, 58.4%)
CIE-LABlab(16.67, 33.59, -44.26)
CIE-LCHlch(16.67, 55.56, 307.19°)
OKLaboklab(29.66% 0.0413 -0.1273)
OKLCHoklch(29.66% 0.134 288)
XYZxyz(4.0339, 2.2340, 13.8515)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E176A #536A17
analogous
#17296A #2E176A #58176A
triadic
#2E176A #6A2E17 #176A2E
tetradic
#2E176A #6A1729 #536A17 #176A58
square
#2E176A #6A1729 #536A17 #176A58
split-complementary
#2E176A #6A5817 #296A17
monochromatic
#0B0519 #180C38 #2E176A #44229C #5A2DCF

Accessibility & contrast

On white

14.51
#2E176A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E176A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E176A
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E176A#FFFFFF#000000##FFFFFF
##2E176A1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#162E3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e176a;
/* rgb */ color: rgb(46, 23, 106);
/* oklch */ color: oklch(29.7% 0.134 288.0);
Tailwind
colors: {
  custom: {
    50: '#6e5795',
    500: '#2e176a',
    950: '#000000',
  },
}
SCSS
$custom: #2e176a;
$custom-light: #6e5795;
$custom-dark: #000000;
JSON
{
  "hex": "#2e176a",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 106
  },
  "hsl": {
    "h": 256.627,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2966,
    "c": 0.13381,
    "h": 288
  },
  "luminance": 0.02234
}

Semantic roles & 50–950 ramp

primary
#2E176A
secondary
#85A03D
accent
#E740B9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E176A

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

Preview Lab → · Contrast checker → · Palette generator →

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