#2E177F#2E177F

#2E177F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.160 H 282.6°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2E177F
RGBrgb(46, 23, 127)
HSLhsl(253, 69%, 29%)
HSVhsv(253, 82%, 50%)
CMYKcmyk(63.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(18.91, 40.10, -54.11)
CIE-LCHlch(18.91, 67.35, 306.54°)
OKLaboklab(31.9% 0.035 -0.1561)
OKLCHoklch(31.9% 0.16 282.6)
XYZxyz(5.2627, 2.7256, 20.3233)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E177F #687F17
analogous
#17347F #2E177F #62177F
triadic
#2E177F #7F2E17 #177F2E
tetradic
#2E177F #7F1734 #687F17 #177F62
square
#2E177F #7F1734 #687F17 #177F62
split-complementary
#2E177F #7F6217 #347F17
monochromatic
#09051A #1B0E4B #2E177F #4120B3 #5A36DB

Accessibility & contrast

On white

13.59
#2E177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2E177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E177F
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E177F#FFFFFF#000000##FFFFFF
##2E177F1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e177f;
/* rgb */ color: rgb(46, 23, 127);
/* oklch */ color: oklch(31.9% 0.160 282.6);
Tailwind
colors: {
  custom: {
    50: '#7358a5',
    500: '#2e177f',
    950: '#000000',
  },
}
SCSS
$custom: #2e177f;
$custom-light: #7358a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e177f",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 253.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.319,
    "c": 0.15993,
    "h": 282.6
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#2E177F
secondary
#9AB43E
accent
#EC3CC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E177F

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

Preview Lab → · Contrast checker → · Palette generator →

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