#2E155A#2E155A

#2E155A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.116 H 294.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2E155A
RGBrgb(46, 21, 90)
HSLhsl(262, 62%, 22%)
HSVhsv(262, 77%, 35%)
CMYKcmyk(48.9%, 76.7%, 0%, 64.7%)
CIE-LABlab(14.71, 29.75, -36.86)
CIE-LCHlch(14.71, 47.37, 308.91°)
OKLaboklab(27.79% 0.0473 -0.1056)
OKLCHoklch(27.79% 0.116 294.1)
XYZxyz(3.2398, 1.8553, 9.8583)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E155A #415A15
analogous
#151F5A #2E155A #51155A
triadic
#2E155A #5A2E15 #155A2E
tetradic
#2E155A #5A151F #415A15 #155A51
square
#2E155A #5A151F #415A15 #155A51
split-complementary
#2E155A #5A5115 #1F5A15
monochromatic
#0D0619 #150928 #2E155A #47218C #612CBD

Accessibility & contrast

On white

15.32
#2E155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E155A
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E155A#FFFFFF#000000##FFFFFF
##2E155A1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#212736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e155a;
/* rgb */ color: rgb(46, 21, 90);
/* oklch */ color: oklch(27.8% 0.116 294.1);
Tailwind
colors: {
  custom: {
    50: '#6c5589',
    500: '#2e155a',
    950: '#000000',
  },
}
SCSS
$custom: #2e155a;
$custom-light: #6c5589;
$custom-dark: #000000;
JSON
{
  "hex": "#2e155a",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 261.739,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27792,
    "c": 0.11568,
    "h": 294.1
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#2E155A
secondary
#729239
accent
#E543AA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E155A

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

Preview Lab → · Contrast checker → · Palette generator →

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