#2E115B#2E115B

#2E115B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.122 H 294.8°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2E115B
RGBrgb(46, 17, 91)
HSLhsl(264, 69%, 21%)
HSVhsv(264, 81%, 36%)
CMYKcmyk(49.5%, 81.3%, 0%, 64.3%)
CIE-LABlab(14.04, 32.21, -38.62)
CIE-LCHlch(14.04, 50.29, 309.83°)
OKLaboklab(27.35% 0.0511 -0.1107)
OKLCHoklch(27.35% 0.122 294.8)
XYZxyz(3.2150, 1.7370, 10.0614)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E115B #3E5B11
analogous
#11195B #2E115B #53115B
triadic
#2E115B #5B2E11 #115B2E
tetradic
#2E115B #5B1119 #3E5B11 #115B53
square
#2E115B #5B1119 #3E5B11 #115B53
split-complementary
#2E115B #5B5311 #195B11
monochromatic
#0D051A #140727 #2E115B #481B8F #6224C2

Accessibility & contrast

On white

15.59
#2E115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E115B
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E115B#FFFFFF#000000##FFFFFF
##2E115B1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#212535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e115b;
/* rgb */ color: rgb(46, 17, 91);
/* oklch */ color: oklch(27.4% 0.122 294.8);
Tailwind
colors: {
  custom: {
    50: '#6c528a',
    500: '#2e115b',
    950: '#000000',
  },
}
SCSS
$custom: #2e115b;
$custom-light: #6c528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e115b",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 263.514,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27351,
    "c": 0.12191,
    "h": 294.8
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#2E115B
secondary
#6E9434
accent
#EB3CA7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E115B

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

Preview Lab → · Contrast checker → · Palette generator →

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