#2E115A#2E115A

#2E115A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.121 H 295.2°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#2E115A
RGBrgb(46, 17, 90)
HSLhsl(264, 68%, 21%)
HSVhsv(264, 81%, 35%)
CMYKcmyk(48.9%, 81.1%, 0%, 64.7%)
CIE-LABlab(13.94, 31.92, -38.11)
CIE-LCHlch(13.94, 49.71, 309.94°)
OKLaboklab(27.25% 0.0514 -0.1092)
OKLCHoklch(27.25% 0.121 295.2)
XYZxyz(3.1721, 1.7198, 9.8357)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E115A #3D5A11
analogous
#11185A #2E115A #52115A
triadic
#2E115A #5A2E11 #115A2E
tetradic
#2E115A #5A1118 #3D5A11 #115A52
square
#2E115A #5A1118 #3D5A11 #115A52
split-complementary
#2E115A #5A5211 #185A11
monochromatic
#0D051A #140727 #2E115A #481B8D #6324C1

Accessibility & contrast

On white

15.62
#2E115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E115A
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E115A#FFFFFF#000000##FFFFFF
##2E115A1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#212535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e115a;
/* rgb */ color: rgb(46, 17, 90);
/* oklch */ color: oklch(27.3% 0.121 295.2);
Tailwind
colors: {
  custom: {
    50: '#6c5289',
    500: '#2e115a',
    950: '#000000',
  },
}
SCSS
$custom: #2e115a;
$custom-light: #6c5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2e115a",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 263.836,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27251,
    "c": 0.12069,
    "h": 295.2
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

primary
#2E115A
secondary
#6D9334
accent
#EB3DA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E115A

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

Preview Lab → · Contrast checker → · Palette generator →

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