#2E156B#2E156B

#2E156B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.137 H 288.1°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#2E156B
RGBrgb(46, 21, 107)
HSLhsl(257, 67%, 25%)
HSVhsv(257, 80%, 42%)
CMYKcmyk(57%, 80.4%, 0%, 58%)
CIE-LABlab(16.40, 34.97, -45.36)
CIE-LCHlch(16.40, 57.27, 307.63°)
OKLaboklab(29.5% 0.0427 -0.1305)
OKLCHoklch(29.5% 0.137 288.1)
XYZxyz(4.0479, 2.1785, 14.1143)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E156B #526B15
analogous
#15276B #2E156B #59156B
triadic
#2E156B #6B2E15 #156B2E
tetradic
#2E156B #6B1527 #526B15 #156B59
square
#2E156B #6B1527 #526B15 #156B59
split-complementary
#2E156B #6B5915 #276B15
monochromatic
#0B051A #180B38 #2E156B #441F9E #5A29D1

Accessibility & contrast

On white

14.63
#2E156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E156B
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E156B#FFFFFF#000000##FFFFFF
##2E156B1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#152D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e156b;
/* rgb */ color: rgb(46, 21, 107);
/* oklch */ color: oklch(29.5% 0.137 288.1);
Tailwind
colors: {
  custom: {
    50: '#6f5696',
    500: '#2e156b',
    950: '#000000',
  },
}
SCSS
$custom: #2e156b;
$custom-light: #6f5696;
$custom-dark: #000000;
JSON
{
  "hex": "#2e156b",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 257.442,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.295,
    "c": 0.1373,
    "h": 288.1
  },
  "luminance": 0.02179
}

Semantic roles & 50–950 ramp

primary
#2E156B
secondary
#84A23A
accent
#EA3EB8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2E156B

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

Preview Lab → · Contrast checker → · Palette generator →

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