#2E136F#2E136F

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

Color values

HEX#2E136F
RGBrgb(46, 19, 111)
HSLhsl(258, 71%, 25%)
HSVhsv(258, 83%, 44%)
CMYKcmyk(58.6%, 82.9%, 0%, 56.5%)
CIE-LABlab(16.47, 37.18, -47.84)
CIE-LCHlch(16.47, 60.59, 307.86°)
OKLaboklab(29.68% 0.0429 -0.1377)
OKLCHoklch(29.68% 0.144 287.3)
XYZxyz(4.2280, 2.1941, 15.2366)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E136F #546F13
analogous
#13266F #2E136F #5C136F
triadic
#2E136F #6F2E13 #136F2E
tetradic
#2E136F #6F1326 #546F13 #136F5C
square
#2E136F #6F1326 #546F13 #136F5C
split-complementary
#2E136F #6F5C13 #266F13
monochromatic
#0B041A #180A3B #2E136F #441CA3 #5925D8

Accessibility & contrast

On white

14.60
#2E136F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E136F
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E136F#FFFFFF#000000##FFFFFF
##2E136F1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00266D
Tritanopia (blue-blind)
#102E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e136f;
/* rgb */ color: rgb(46, 19, 111);
/* oklch */ color: oklch(29.7% 0.144 287.3);
Tailwind
colors: {
  custom: {
    50: '#705599',
    500: '#2e136f',
    950: '#000000',
  },
}
SCSS
$custom: #2e136f;
$custom-light: #705599;
$custom-dark: #000000;
JSON
{
  "hex": "#2e136f",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 111
  },
  "hsl": {
    "h": 257.609,
    "s": 70.769,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29682,
    "c": 0.14426,
    "h": 287.3
  },
  "luminance": 0.02194
}

Semantic roles & 50–950 ramp

primary
#2E136F
secondary
#86A638
accent
#EE3AB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E136F

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

Preview Lab → · Contrast checker → · Palette generator →

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