#2E1749#2E1749

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

Color values

HEX#2E1749
RGBrgb(46, 23, 73)
HSLhsl(268, 52%, 19%)
HSVhsv(268, 68%, 29%)
CMYKcmyk(37%, 68.5%, 0%, 71.4%)
CIE-LABlab(13.68, 23.41, -26.94)
CIE-LCHlch(13.68, 35.69, 310.99°)
OKLaboklab(26.59% 0.0473 -0.0764)
OKLCHoklch(26.59% 0.09 301.8)
XYZxyz(2.6354, 1.6747, 6.4864)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1749 #324917
analogous
#171949 #2E1749 #471749
triadic
#2E1749 #492E17 #17492E
tetradic
#2E1749 #491719 #324917 #174947
square
#2E1749 #491719 #324917 #174947
split-complementary
#2E1749 #494717 #194917
monochromatic
#0F0717 #11081A #2E1749 #4B2678 #6934A6

Accessibility & contrast

On white

15.73
#2E1749 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1749
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1749#FFFFFF#000000##FFFFFF
##2E17491.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234B
Deuteranopia (green-blind)
#072348
Tritanopia (blue-blind)
#29222D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1749;
/* rgb */ color: rgb(46, 23, 73);
/* oklch */ color: oklch(26.6% 0.090 301.8);
Tailwind
colors: {
  custom: {
    50: '#69557c',
    500: '#2e1749',
    950: '#000000',
  },
}
SCSS
$custom: #2e1749;
$custom-light: #69557c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1749",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 73
  },
  "hsl": {
    "h": 267.6,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26591,
    "c": 0.08988,
    "h": 301.8
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#2E1749
secondary
#61803C
accent
#DC4C9A
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1749

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

Preview Lab → · Contrast checker → · Palette generator →

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