#2E1848#2E1848

#2E1848 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.087 H 302.0°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1848
RGBrgb(46, 24, 72)
HSLhsl(268, 50%, 19%)
HSVhsv(268, 67%, 28%)
CMYKcmyk(36.1%, 66.7%, 0%, 71.8%)
CIE-LABlab(13.84, 22.48, -25.99)
CIE-LCHlch(13.84, 34.36, 310.86°)
OKLaboklab(26.68% 0.0459 -0.0736)
OKLCHoklch(26.68% 0.087 302)
XYZxyz(2.6228, 1.7020, 6.3200)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1848 #324818
analogous
#181A48 #2E1848 #461848
triadic
#2E1848 #482E18 #18482E
tetradic
#2E1848 #48181A #324818 #184846
square
#2E1848 #48181A #324818 #184846
split-complementary
#2E1848 #484618 #1A4818
monochromatic
#0F0817 #11091A #2E1848 #4B2776 #6937A4

Accessibility & contrast

On white

15.67
#2E1848 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1848 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1848
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1848#FFFFFF#000000##FFFFFF
##2E18481.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02234A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#29222D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1848;
/* rgb */ color: rgb(46, 24, 72);
/* oklch */ color: oklch(26.7% 0.087 302.0);
Tailwind
colors: {
  custom: {
    50: '#69567b',
    500: '#2e1848',
    950: '#000000',
  },
}
SCSS
$custom: #2e1848;
$custom-light: #69567b;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1848",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 72
  },
  "hsl": {
    "h": 267.5,
    "s": 50,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26683,
    "c": 0.08678,
    "h": 302
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#2E1848
secondary
#617F3D
accent
#DA4E9A
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1848

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

Preview Lab → · Contrast checker → · Palette generator →

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