#2E156C#2E156C

#2E156C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.139 H 287.8°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#2E156C
RGBrgb(46, 21, 108)
HSLhsl(257, 67%, 25%)
HSVhsv(257, 81%, 42%)
CMYKcmyk(57.4%, 80.6%, 0%, 57.6%)
CIE-LABlab(16.50, 35.27, -45.84)
CIE-LCHlch(16.50, 57.84, 307.58°)
OKLaboklab(29.6% 0.0424 -0.1319)
OKLCHoklch(29.6% 0.139 287.8)
XYZxyz(4.1009, 2.1997, 14.3929)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E156C #536C15
analogous
#15286C #2E156C #59156C
triadic
#2E156C #6C2E15 #156C2E
tetradic
#2E156C #6C1528 #536C15 #156C59
square
#2E156C #6C1528 #536C15 #156C59
split-complementary
#2E156C #6C5915 #286C15
monochromatic
#0B051A #180B39 #2E156C #441F9F #5A29D2

Accessibility & contrast

On white

14.58
#2E156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E156C
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E156C#FFFFFF#000000##FFFFFF
##2E156C1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#142E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e156c;
/* rgb */ color: rgb(46, 21, 108);
/* oklch */ color: oklch(29.6% 0.139 287.8);
Tailwind
colors: {
  custom: {
    50: '#6f5697',
    500: '#2e156c',
    950: '#000000',
  },
}
SCSS
$custom: #2e156c;
$custom-light: #6f5697;
$custom-dark: #000000;
JSON
{
  "hex": "#2e156c",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 257.241,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29605,
    "c": 0.13854,
    "h": 287.8
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#2E156C
secondary
#85A33A
accent
#EA3DB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E156C

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

Preview Lab → · Contrast checker → · Palette generator →

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