#2E135D#2E135D

#2E135D is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.122 H 293.5°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2E135D
RGBrgb(46, 19, 93)
HSLhsl(262, 66%, 22%)
HSVhsv(262, 80%, 36%)
CMYKcmyk(50.5%, 79.6%, 0%, 63.5%)
CIE-LABlab(14.61, 31.76, -39.04)
CIE-LCHlch(14.61, 50.33, 309.13°)
OKLaboklab(27.81% 0.0486 -0.1119)
OKLCHoklch(27.81% 0.122 293.5)
XYZxyz(3.3348, 1.8368, 10.5326)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E135D #425D13
analogous
#131D5D #2E135D #53135D
triadic
#2E135D #5D2E13 #135D2E
tetradic
#2E135D #5D131D #425D13 #135D53
square
#2E135D #5D131D #425D13 #135D53
split-complementary
#2E135D #5D5313 #1D5D13
monochromatic
#0D0519 #15092A #2E135D #471D90 #6028C3

Accessibility & contrast

On white

15.36
#2E135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E135D
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E135D#FFFFFF#000000##FFFFFF
##2E135D1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#202737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e135d;
/* rgb */ color: rgb(46, 19, 93);
/* oklch */ color: oklch(27.8% 0.122 293.5);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2e135d',
    950: '#000000',
  },
}
SCSS
$custom: #2e135d;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e135d",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 261.892,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27809,
    "c": 0.12203,
    "h": 293.5
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#2E135D
secondary
#739537
accent
#E93FAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E135D

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

Preview Lab → · Contrast checker → · Palette generator →

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