#2E155B#2E155B

#2E155B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.117 H 293.7°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#2E155B
RGBrgb(46, 21, 91)
HSLhsl(261, 63%, 22%)
HSVhsv(261, 77%, 36%)
CMYKcmyk(49.5%, 76.9%, 0%, 64.3%)
CIE-LABlab(14.80, 30.06, -37.38)
CIE-LCHlch(14.80, 47.97, 308.81°)
OKLaboklab(27.89% 0.0471 -0.1071)
OKLCHoklch(27.89% 0.117 293.7)
XYZxyz(3.2827, 1.8724, 10.0840)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E155B #425B15
analogous
#151F5B #2E155B #51155B
triadic
#2E155B #5B2E15 #155B2E
tetradic
#2E155B #5B151F #425B15 #155B51
square
#2E155B #5B151F #425B15 #155B51
split-complementary
#2E155B #5B5115 #1F5B15
monochromatic
#0D0619 #150A29 #2E155B #47208D #602CBE

Accessibility & contrast

On white

15.28
#2E155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E155B
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E155B#FFFFFF#000000##FFFFFF
##2E155B1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#212736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e155b;
/* rgb */ color: rgb(46, 21, 91);
/* oklch */ color: oklch(27.9% 0.117 293.7);
Tailwind
colors: {
  custom: {
    50: '#6c558a',
    500: '#2e155b',
    950: '#000000',
  },
}
SCSS
$custom: #2e155b;
$custom-light: #6c558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e155b",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 261.429,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.11697,
    "h": 293.7
  },
  "luminance": 0.01873
}

Semantic roles & 50–950 ramp

primary
#2E155B
secondary
#739239
accent
#E642AB
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E155B

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

Preview Lab → · Contrast checker → · Palette generator →

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