#2E177E#2E177E

#2E177E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.159 H 282.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2E177E
RGBrgb(46, 23, 126)
HSLhsl(253, 69%, 29%)
HSVhsv(253, 82%, 49%)
CMYKcmyk(63.5%, 81.7%, 0%, 50.6%)
CIE-LABlab(18.80, 39.79, -53.66)
CIE-LCHlch(18.80, 66.80, 306.56°)
OKLaboklab(31.79% 0.0353 -0.1547)
OKLCHoklch(31.79% 0.159 282.8)
XYZxyz(5.1978, 2.6996, 19.9818)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E177E #677E17
analogous
#17347E #2E177E #62177E
triadic
#2E177E #7E2E17 #177E2E
tetradic
#2E177E #7E1734 #677E17 #177E62
square
#2E177E #7E1734 #677E17 #177E62
split-complementary
#2E177E #7E6217 #347E17
monochromatic
#09051A #1B0E4A #2E177E #4120B2 #5A35DA

Accessibility & contrast

On white

13.64
#2E177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E177E
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E177E#FFFFFF#000000##FFFFFF
##2E177E1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e177e;
/* rgb */ color: rgb(46, 23, 126);
/* oklch */ color: oklch(31.8% 0.159 282.8);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2e177e',
    950: '#000000',
  },
}
SCSS
$custom: #2e177e;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e177e",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 253.398,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31789,
    "c": 0.15871,
    "h": 282.8
  },
  "luminance": 0.027
}

Semantic roles & 50–950 ramp

primary
#2E177E
secondary
#99B33E
accent
#EC3CC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E177E

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

Preview Lab → · Contrast checker → · Palette generator →

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