#2E156F#2E156F

#2E156F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.142 H 286.9°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2E156F
RGBrgb(46, 21, 111)
HSLhsl(257, 68%, 26%)
HSVhsv(257, 81%, 44%)
CMYKcmyk(58.6%, 81.1%, 0%, 56.5%)
CIE-LABlab(16.82, 36.19, -47.28)
CIE-LCHlch(16.82, 59.54, 307.44°)
OKLaboklab(29.92% 0.0415 -0.1361)
OKLCHoklch(29.92% 0.142 286.9)
XYZxyz(4.2633, 2.2646, 15.2483)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E156F #566F15
analogous
#15296F #2E156F #5B156F
triadic
#2E156F #6F2E15 #156F2E
tetradic
#2E156F #6F1529 #566F15 #156F5B
square
#2E156F #6F1529 #566F15 #156F5B
split-complementary
#2E156F #6F5B15 #296F15
monochromatic
#0B051A #190B3C #2E156F #431FA2 #5928D6

Accessibility & contrast

On white

14.45
#2E156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E156F
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E156F#FFFFFF#000000##FFFFFF
##2E156F1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#102F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e156f;
/* rgb */ color: rgb(46, 21, 111);
/* oklch */ color: oklch(29.9% 0.142 286.9);
Tailwind
colors: {
  custom: {
    50: '#6f5699',
    500: '#2e156f',
    950: '#000000',
  },
}
SCSS
$custom: #2e156f;
$custom-light: #6f5699;
$custom-dark: #000000;
JSON
{
  "hex": "#2e156f",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 256.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29922,
    "c": 0.14226,
    "h": 286.9
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#2E156F
secondary
#88A53A
accent
#EB3DBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E156F

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

Preview Lab → · Contrast checker → · Palette generator →

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