#2E1944#2E1944

#2E1944 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.079 H 304.0°. Best body text is #FFFFFF at 15.69:1 contrast (WCAG AA passes).

Color values

HEX#2E1944
RGBrgb(46, 25, 68)
HSLhsl(269, 46%, 18%)
HSVhsv(269, 63%, 27%)
CMYKcmyk(32.4%, 63.2%, 0%, 73.3%)
CIE-LABlab(13.79, 20.64, -23.29)
CIE-LCHlch(13.79, 31.12, 311.55°)
OKLaboklab(26.55% 0.0444 -0.0657)
OKLCHoklch(26.55% 0.079 304)
XYZxyz(2.5175, 1.6935, 5.6620)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1944 #2F4419
analogous
#191944 #2E1944 #431944
triadic
#2E1944 #442E19 #19442E
tetradic
#2E1944 #441919 #2F4419 #194443
square
#2E1944 #441919 #2F4419 #194443
split-complementary
#2E1944 #444319 #194419
monochromatic
#0F0816 #100917 #2E1944 #4C2971 #6B3A9D

Accessibility & contrast

On white

15.69
#2E1944 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1944
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1944#FFFFFF#000000##FFFFFF
##2E19441.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082345
Deuteranopia (green-blind)
#102343
Tritanopia (blue-blind)
#2A212B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1944;
/* rgb */ color: rgb(46, 25, 68);
/* oklch */ color: oklch(26.6% 0.079 304.0);
Tailwind
colors: {
  custom: {
    50: '#685678',
    500: '#2e1944',
    950: '#000000',
  },
}
SCSS
$custom: #2e1944;
$custom-light: #685678;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1944",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 68
  },
  "hsl": {
    "h": 269.302,
    "s": 46.237,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26551,
    "c": 0.0793,
    "h": 304
  },
  "luminance": 0.01693
}

Semantic roles & 50–950 ramp

primary
#2E1944
secondary
#5D7A3E
accent
#D65295
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1944

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

Preview Lab → · Contrast checker → · Palette generator →

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