#2E145D#2E145D

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

Color values

HEX#2E145D
RGBrgb(46, 20, 93)
HSLhsl(261, 65%, 22%)
HSVhsv(261, 78%, 36%)
CMYKcmyk(50.5%, 78.5%, 0%, 63.5%)
CIE-LABlab(14.80, 31.22, -38.73)
CIE-LCHlch(14.80, 49.75, 308.88°)
OKLaboklab(27.94% 0.0476 -0.111)
OKLCHoklch(27.94% 0.121 293.2)
XYZxyz(3.3521, 1.8714, 10.5384)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E145D #435D14
analogous
#141E5D #2E145D #53145D
triadic
#2E145D #5D2E14 #145D2E
tetradic
#2E145D #5D141E #435D14 #145D53
square
#2E145D #5D141E #435D14 #145D53
split-complementary
#2E145D #5D5314 #1E5D14
monochromatic
#0C0519 #15092B #2E145D #471F8F #602AC2

Accessibility & contrast

On white

15.28
#2E145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E145D
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E145D#FFFFFF#000000##FFFFFF
##2E145D1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e145d;
/* rgb */ color: rgb(46, 20, 93);
/* oklch */ color: oklch(27.9% 0.121 293.2);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2e145d',
    950: '#000000',
  },
}
SCSS
$custom: #2e145d;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e145d",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 261.37,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27943,
    "c": 0.12081,
    "h": 293.2
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#2E145D
secondary
#749538
accent
#E840AC
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E145D

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

Preview Lab → · Contrast checker → · Palette generator →

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