#2E1244#2E1244

#2E1244 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.091 H 306.7°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#2E1244
RGBrgb(46, 18, 68)
HSLhsl(274, 58%, 17%)
HSVhsv(274, 74%, 27%)
CMYKcmyk(32.4%, 73.5%, 0%, 73.3%)
CIE-LABlab(12.16, 25.02, -25.90)
CIE-LCHlch(12.16, 36.02, 314.01°)
OKLaboklab(25.37% 0.0547 -0.0733)
OKLCHoklch(25.37% 0.092 306.7)
XYZxyz(2.3862, 1.4308, 5.6182)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1244 #284412
analogous
#151244 #2E1244 #441241
triadic
#2E1244 #442E12 #12442E
tetradic
#2E1244 #441512 #284412 #124144
square
#2E1244 #441512 #284412 #124144
split-complementary
#2E1244 #414412 #124415
monochromatic
#100618 #100618 #2E1244 #4F1F74 #6F2CA5

Accessibility & contrast

On white

16.33
#2E1244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1244 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1244
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1244#FFFFFF#000000##FFFFFF
##2E12441.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#072043
Tritanopia (blue-blind)
#2A1D29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1244;
/* rgb */ color: rgb(46, 18, 68);
/* oklch */ color: oklch(25.4% 0.091 306.7);
Tailwind
colors: {
  custom: {
    50: '#695278',
    500: '#2e1244',
    950: '#000000',
  },
}
SCSS
$custom: #2e1244;
$custom-light: #695278;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1244",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 68
  },
  "hsl": {
    "h": 273.6,
    "s": 58.14,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25368,
    "c": 0.0915,
    "h": 306.7
  },
  "luminance": 0.01431
}

Semantic roles & 50–950 ramp

primary
#2E1244
secondary
#557D35
accent
#E1468B
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1244

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

Preview Lab → · Contrast checker → · Palette generator →

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