#2E117F#2E117F

#2E117F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.165 H 283.4°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2E117F
RGBrgb(46, 17, 127)
HSLhsl(256, 76%, 28%)
HSVhsv(256, 87%, 50%)
CMYKcmyk(63.8%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.98, 42.82, -55.65)
CIE-LCHlch(17.98, 70.21, 307.58°)
OKLaboklab(31.26% 0.0383 -0.1604)
OKLCHoklch(31.26% 0.165 283.4)
XYZxyz(5.1567, 2.5137, 20.2880)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E117F #627F11
analogous
#112B7F #2E117F #65117F
triadic
#2E117F #7F2E11 #117F2E
tetradic
#2E117F #7F112B #627F11 #117F65
square
#2E117F #7F112B #627F11 #117F65
split-complementary
#2E117F #7F6511 #2B7F11
monochromatic
#0A041B #1A0A49 #2E117F #4218B5 #5928E2

Accessibility & contrast

On white

13.97
#2E117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2E117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E117F
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E117F#FFFFFF#000000##FFFFFF
##2E117F1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e117f;
/* rgb */ color: rgb(46, 17, 127);
/* oklch */ color: oklch(31.3% 0.165 283.4);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2e117f',
    950: '#000000',
  },
}
SCSS
$custom: #2e117f;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e117f",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 255.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31259,
    "c": 0.16495,
    "h": 283.4
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#2E117F
secondary
#94B537
accent
#F335C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E117F

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

Preview Lab → · Contrast checker → · Palette generator →

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