#2E156E#2E156E

#2E156E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.141 H 287.2°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2E156E
RGBrgb(46, 21, 110)
HSLhsl(257, 68%, 26%)
HSVhsv(257, 81%, 43%)
CMYKcmyk(58.2%, 80.9%, 0%, 56.9%)
CIE-LABlab(16.71, 35.89, -46.80)
CIE-LCHlch(16.71, 58.98, 307.48°)
OKLaboklab(29.82% 0.0418 -0.1347)
OKLCHoklch(29.82% 0.141 287.2)
XYZxyz(4.2085, 2.2427, 14.9600)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E156E #556E15
analogous
#15286E #2E156E #5A156E
triadic
#2E156E #6E2E15 #156E2E
tetradic
#2E156E #6E1528 #556E15 #156E5A
square
#2E156E #6E1528 #556E15 #156E5A
split-complementary
#2E156E #6E5A15 #286E15
monochromatic
#0B051A #190B3B #2E156E #431FA1 #5929D5

Accessibility & contrast

On white

14.50
#2E156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E156E
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E156E#FFFFFF#000000##FFFFFF
##2E156E1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#122E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e156e;
/* rgb */ color: rgb(46, 21, 110);
/* oklch */ color: oklch(29.8% 0.141 287.2);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2e156e',
    950: '#000000',
  },
}
SCSS
$custom: #2e156e;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2e156e",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 256.854,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29816,
    "c": 0.14102,
    "h": 287.2
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#2E156E
secondary
#87A43A
accent
#EB3DBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E156E

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

Preview Lab → · Contrast checker → · Palette generator →

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