#2E1348#2E1348

#2E1348 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.095 H 303.8°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#2E1348
RGBrgb(46, 19, 72)
HSLhsl(271, 58%, 18%)
HSVhsv(271, 74%, 28%)
CMYKcmyk(36.1%, 73.6%, 0%, 71.8%)
CIE-LABlab(12.70, 25.56, -27.83)
CIE-LCHlch(12.70, 37.79, 312.57°)
OKLaboklab(25.86% 0.0529 -0.079)
OKLCHoklch(25.86% 0.095 303.8)
XYZxyz(2.5290, 1.5145, 6.2887)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1348 #2D4813
analogous
#131348 #2E1348 #481347
triadic
#2E1348 #482E13 #13482E
tetradic
#2E1348 #481313 #2D4813 #134748
square
#2E1348 #481313 #2D4813 #134748
split-complementary
#2E1348 #474813 #134813
monochromatic
#0F0618 #0F0618 #2E1348 #4D2078 #6C2DA9

Accessibility & contrast

On white

16.12
#2E1348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E1348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1348
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1348#FFFFFF#000000##FFFFFF
##2E13481.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#032147
Tritanopia (blue-blind)
#291F2B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e1348;
/* rgb */ color: rgb(46, 19, 72);
/* oklch */ color: oklch(25.9% 0.095 303.8);
Tailwind
colors: {
  custom: {
    50: '#69537b',
    500: '#2e1348',
    950: '#000000',
  },
}
SCSS
$custom: #2e1348;
$custom-light: #69537b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1348",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 270.566,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25858,
    "c": 0.09508,
    "h": 303.8
  },
  "luminance": 0.01514
}

Semantic roles & 50–950 ramp

primary
#2E1348
secondary
#5B8136
accent
#E14692
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1348

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

Preview Lab → · Contrast checker → · Palette generator →

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