#2E153B#2E153B

#2E153B is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.074 H 312.6°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2E153B
RGBrgb(46, 21, 59)
HSLhsl(279, 48%, 16%)
HSVhsv(279, 64%, 23%)
CMYKcmyk(22%, 64.4%, 0%, 76.9%)
CIE-LABlab(12.18, 20.71, -19.52)
CIE-LCHlch(12.18, 28.46, 316.69°)
OKLaboklab(25.16% 0.0503 -0.0547)
OKLCHoklch(25.16% 0.074 312.6)
XYZxyz(2.1842, 1.4330, 4.2984)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E153B #223B15
analogous
#1B153B #2E153B #3B1535
triadic
#2E153B #3B2E15 #153B2E
tetradic
#2E153B #3B1B15 #223B15 #15353B
square
#2E153B #3B1B15 #223B15 #15353B
split-complementary
#2E153B #353B15 #153B1B
monochromatic
#120817 #120817 #2E153B #512568 #743595

Accessibility & contrast

On white

16.32
#2E153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E153B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E153B
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E153B#FFFFFF#000000##FFFFFF
##2E153B1.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1F3C
Deuteranopia (green-blind)
#13203A
Tritanopia (blue-blind)
#2D1C25
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e153b;
/* rgb */ color: rgb(46, 21, 59);
/* oklch */ color: oklch(25.2% 0.074 312.6);
Tailwind
colors: {
  custom: {
    50: '#685371',
    500: '#2e153b',
    950: '#000000',
  },
}
SCSS
$custom: #2e153b;
$custom-light: #685371;
$custom-dark: #000000;
JSON
{
  "hex": "#2e153b",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 279.474,
    "s": 47.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25164,
    "c": 0.0743,
    "h": 312.6
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#2E153B
secondary
#4D7239
accent
#D7517F
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060207
muted
#7A787A

Preview Lab

Preview with #2E153B

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

Preview Lab → · Contrast checker → · Palette generator →

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