#2E156A#2E156A

#2E156A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.136 H 288.4°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#2E156A
RGBrgb(46, 21, 106)
HSLhsl(258, 67%, 25%)
HSVhsv(258, 80%, 42%)
CMYKcmyk(56.6%, 80.2%, 0%, 58.4%)
CIE-LABlab(16.29, 34.66, -44.88)
CIE-LCHlch(16.29, 56.70, 307.68°)
OKLaboklab(29.4% 0.043 -0.1291)
OKLCHoklch(29.4% 0.136 288.4)
XYZxyz(3.9956, 2.1576, 13.8388)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E156A #516A15
analogous
#15276A #2E156A #59156A
triadic
#2E156A #6A2E15 #156A2E
tetradic
#2E156A #6A1527 #516A15 #156A59
square
#2E156A #6A1527 #516A15 #156A59
split-complementary
#2E156A #6A5915 #276A15
monochromatic
#0B051A #180B37 #2E156A #441F9D #5A29D0

Accessibility & contrast

On white

14.67
#2E156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2E156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E156A
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E156A#FFFFFF#000000##FFFFFF
##2E156A1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#162D3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2e156a;
/* rgb */ color: rgb(46, 21, 106);
/* oklch */ color: oklch(29.4% 0.136 288.4);
Tailwind
colors: {
  custom: {
    50: '#6f5695',
    500: '#2e156a',
    950: '#000000',
  },
}
SCSS
$custom: #2e156a;
$custom-light: #6f5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2e156a",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 257.647,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29396,
    "c": 0.13604,
    "h": 288.4
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#2E156A
secondary
#83A13A
accent
#EA3EB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E156A

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

Preview Lab → · Contrast checker → · Palette generator →

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