#2E135E#2E135E

#2E135E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.123 H 293.1°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2E135E
RGBrgb(46, 19, 94)
HSLhsl(262, 66%, 22%)
HSVhsv(262, 80%, 37%)
CMYKcmyk(51.1%, 79.8%, 0%, 63.1%)
CIE-LABlab(14.70, 32.06, -39.55)
CIE-LCHlch(14.70, 50.91, 309.03°)
OKLaboklab(27.91% 0.0483 -0.1134)
OKLCHoklch(27.91% 0.123 293.1)
XYZxyz(3.3794, 1.8546, 10.7674)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E135E #435E13
analogous
#131E5E #2E135E #54135E
triadic
#2E135E #5E2E13 #135E2E
tetradic
#2E135E #5E131E #435E13 #135E54
square
#2E135E #5E131E #435E13 #135E54
split-complementary
#2E135E #5E5413 #1E5E13
monochromatic
#0C0519 #15092B #2E135E #471D91 #6028C4

Accessibility & contrast

On white

15.32
#2E135E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E135E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E135E
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E135E#FFFFFF#000000##FFFFFF
##2E135E1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1F2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e135e;
/* rgb */ color: rgb(46, 19, 94);
/* oklch */ color: oklch(27.9% 0.123 293.1);
Tailwind
colors: {
  custom: {
    50: '#6d548c',
    500: '#2e135e',
    950: '#000000',
  },
}
SCSS
$custom: #2e135e;
$custom-light: #6d548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e135e",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 94
  },
  "hsl": {
    "h": 261.6,
    "s": 66.372,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27909,
    "c": 0.12329,
    "h": 293.1
  },
  "luminance": 0.01855
}

Semantic roles & 50–950 ramp

primary
#2E135E
secondary
#749637
accent
#E93FAC
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E135E

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

Preview Lab → · Contrast checker → · Palette generator →

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