#2E114E#2E114E

#2E114E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.106 H 301.0°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2E114E
RGBrgb(46, 17, 78)
HSLhsl(269, 64%, 19%)
HSVhsv(269, 78%, 31%)
CMYKcmyk(41%, 78.2%, 0%, 69.4%)
CIE-LABlab(12.81, 28.42, -31.80)
CIE-LCHlch(12.81, 42.65, 311.79°)
OKLaboklab(26.1% 0.0544 -0.0907)
OKLCHoklch(26.1% 0.106 301)
XYZxyz(2.7020, 1.5318, 7.3596)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E114E #314E11
analogous
#11124E #2E114E #4C114E
triadic
#2E114E #4E2E11 #114E2E
tetradic
#2E114E #4E1112 #314E11 #114E4C
square
#2E114E #4E1112 #314E11 #114E4C
split-complementary
#2E114E #4E4C11 #124E11
monochromatic
#0F0519 #10061C #2E114E #4C1C80 #6927B2

Accessibility & contrast

On white

16.07
#2E114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E114E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E114E
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E114E#FFFFFF#000000##FFFFFF
##2E114E1.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#27202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e114e;
/* rgb */ color: rgb(46, 17, 78);
/* oklch */ color: oklch(26.1% 0.106 301.0);
Tailwind
colors: {
  custom: {
    50: '#6a5280',
    500: '#2e114e',
    950: '#000000',
  },
}
SCSS
$custom: #2e114e;
$custom-light: #6a5280;
$custom-dark: #000000;
JSON
{
  "hex": "#2e114e",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 268.525,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26099,
    "c": 0.10574,
    "h": 301
  },
  "luminance": 0.01532
}

Semantic roles & 50–950 ramp

primary
#2E114E
secondary
#5F8733
accent
#E74198
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E114E

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

Preview Lab → · Contrast checker → · Palette generator →

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