#2E156D#2E156D

#2E156D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.140 H 287.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2E156D
RGBrgb(46, 21, 109)
HSLhsl(257, 68%, 25%)
HSVhsv(257, 81%, 43%)
CMYKcmyk(57.8%, 80.7%, 0%, 57.3%)
CIE-LABlab(16.61, 35.58, -46.32)
CIE-LCHlch(16.61, 58.41, 307.53°)
OKLaboklab(29.71% 0.0421 -0.1333)
OKLCHoklch(29.71% 0.14 287.5)
XYZxyz(4.1544, 2.2211, 14.6748)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E156D #546D15
analogous
#15286D #2E156D #5A156D
triadic
#2E156D #6D2E15 #156D2E
tetradic
#2E156D #6D1528 #546D15 #156D5A
square
#2E156D #6D1528 #546D15 #156D5A
split-complementary
#2E156D #6D5A15 #286D15
monochromatic
#0B051A #180B3A #2E156D #441FA0 #5929D4

Accessibility & contrast

On white

14.54
#2E156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E156D
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E156D#FFFFFF#000000##FFFFFF
##2E156D1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#132E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e156d;
/* rgb */ color: rgb(46, 21, 109);
/* oklch */ color: oklch(29.7% 0.140 287.5);
Tailwind
colors: {
  custom: {
    50: '#6f5698',
    500: '#2e156d',
    950: '#000000',
  },
}
SCSS
$custom: #2e156d;
$custom-light: #6f5698;
$custom-dark: #000000;
JSON
{
  "hex": "#2e156d",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 257.045,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.2971,
    "c": 0.13978,
    "h": 287.5
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#2E156D
secondary
#86A33A
accent
#EB3DB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E156D

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

Preview Lab → · Contrast checker → · Palette generator →

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