#2E135B#2E135B

#2E135B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.6% C 0.120 H 294.3°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2E135B
RGBrgb(46, 19, 91)
HSLhsl(263, 65%, 22%)
HSVhsv(263, 79%, 36%)
CMYKcmyk(49.5%, 79.1%, 0%, 64.3%)
CIE-LABlab(14.41, 31.16, -38.02)
CIE-LCHlch(14.41, 49.16, 309.34°)
OKLaboklab(27.61% 0.0491 -0.109)
OKLCHoklch(27.61% 0.12 294.3)
XYZxyz(3.2474, 1.8018, 10.0722)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E135B #405B13
analogous
#131C5B #2E135B #52135B
triadic
#2E135B #5B2E13 #135B2E
tetradic
#2E135B #5B131C #405B13 #135B52
square
#2E135B #5B131C #405B13 #135B52
split-complementary
#2E135B #5B5213 #1C5B13
monochromatic
#0D0519 #140828 #2E135B #481E8E #6128C0

Accessibility & contrast

On white

15.44
#2E135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E135B
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E135B#FFFFFF#000000##FFFFFF
##2E135B1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#212636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e135b;
/* rgb */ color: rgb(46, 19, 91);
/* oklch */ color: oklch(27.6% 0.120 294.3);
Tailwind
colors: {
  custom: {
    50: '#6c548a',
    500: '#2e135b',
    950: '#000000',
  },
}
SCSS
$custom: #2e135b;
$custom-light: #6c548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e135b",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 262.5,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27611,
    "c": 0.11952,
    "h": 294.3
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#2E135B
secondary
#709337
accent
#E83FA9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E135B

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

Preview Lab → · Contrast checker → · Palette generator →

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