#2E117E#2E117E

#2E117E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.164 H 283.7°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#2E117E
RGBrgb(46, 17, 126)
HSLhsl(256, 76%, 28%)
HSVhsv(256, 87%, 49%)
CMYKcmyk(63.5%, 86.5%, 0%, 50.6%)
CIE-LABlab(17.86, 42.53, -55.20)
CIE-LCHlch(17.86, 69.69, 307.61°)
OKLaboklab(31.14% 0.0387 -0.1592)
OKLCHoklch(31.14% 0.164 283.7)
XYZxyz(5.0919, 2.4877, 19.9465)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E117E #617E11
analogous
#112B7E #2E117E #64117E
triadic
#2E117E #7E2E11 #117E2E
tetradic
#2E117E #7E112B #617E11 #117E64
square
#2E117E #7E112B #617E11 #117E64
split-complementary
#2E117E #7E6411 #2B7E11
monochromatic
#0A041B #1A0A48 #2E117E #4218B4 #5927E2

Accessibility & contrast

On white

14.02
#2E117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E117E
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E117E#FFFFFF#000000##FFFFFF
##2E117E1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2e117e;
/* rgb */ color: rgb(46, 17, 126);
/* oklch */ color: oklch(31.1% 0.164 283.7);
Tailwind
colors: {
  custom: {
    50: '#7355a5',
    500: '#2e117e',
    950: '#000000',
  },
}
SCSS
$custom: #2e117e;
$custom-light: #7355a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e117e",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 255.963,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31144,
    "c": 0.16379,
    "h": 283.7
  },
  "luminance": 0.02488
}

Semantic roles & 50–950 ramp

primary
#2E117E
secondary
#93B437
accent
#F335C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E117E

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

Preview Lab → · Contrast checker → · Palette generator →

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