#2E1248#2E1248

#2E1248 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.097 H 304.1°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#2E1248
RGBrgb(46, 18, 72)
HSLhsl(271, 60%, 18%)
HSVhsv(271, 75%, 28%)
CMYKcmyk(36.1%, 75%, 0%, 71.8%)
CIE-LABlab(12.49, 26.15, -28.17)
CIE-LCHlch(12.49, 38.43, 312.87°)
OKLaboklab(25.71% 0.0542 -0.08)
OKLCHoklch(25.71% 0.097 304.1)
XYZxyz(2.5125, 1.4813, 6.2832)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1248 #2C4812
analogous
#131248 #2E1248 #481247
triadic
#2E1248 #482E12 #12482E
tetradic
#2E1248 #481312 #2C4812 #124748
square
#2E1248 #481312 #2C4812 #124748
split-complementary
#2E1248 #474812 #124813
monochromatic
#100618 #100618 #2E1248 #4D1E79 #6D2AAA

Accessibility & contrast

On white

16.20
#2E1248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1248
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1248#FFFFFF#000000##FFFFFF
##2E12481.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#022047
Tritanopia (blue-blind)
#291E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1248;
/* rgb */ color: rgb(46, 18, 72);
/* oklch */ color: oklch(25.7% 0.097 304.1);
Tailwind
colors: {
  custom: {
    50: '#69527b',
    500: '#2e1248',
    950: '#000000',
  },
}
SCSS
$custom: #2e1248;
$custom-light: #69527b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1248",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 271.111,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25707,
    "c": 0.09665,
    "h": 304.1
  },
  "luminance": 0.01481
}

Semantic roles & 50–950 ramp

primary
#2E1248
secondary
#598135
accent
#E34591
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1248

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

Preview Lab → · Contrast checker → · Palette generator →

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