#2E1746#2E1746

#2E1746 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.086 H 303.6°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#2E1746
RGBrgb(46, 23, 70)
HSLhsl(269, 51%, 18%)
HSVhsv(269, 67%, 27%)
CMYKcmyk(34.3%, 67.1%, 0%, 72.5%)
CIE-LABlab(13.45, 22.53, -25.23)
CIE-LCHlch(13.45, 33.83, 311.76°)
OKLaboklab(26.35% 0.0474 -0.0714)
OKLCHoklch(26.35% 0.086 303.6)
XYZxyz(2.5384, 1.6358, 5.9752)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1746 #2F4617
analogous
#171746 #2E1746 #451746
triadic
#2E1746 #462E17 #17462E
tetradic
#2E1746 #461717 #2F4617 #174645
square
#2E1746 #461717 #2F4617 #174645
split-complementary
#2E1746 #464517 #174617
monochromatic
#0F0817 #100818 #2E1746 #4C2674 #6B35A2

Accessibility & contrast

On white

15.82
#2E1746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1746
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1746#FFFFFF#000000##FFFFFF
##2E17461.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022248
Deuteranopia (green-blind)
#0B2245
Tritanopia (blue-blind)
#2A212B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e1746;
/* rgb */ color: rgb(46, 23, 70);
/* oklch */ color: oklch(26.3% 0.086 303.6);
Tailwind
colors: {
  custom: {
    50: '#69557a',
    500: '#2e1746',
    950: '#000000',
  },
}
SCSS
$custom: #2e1746;
$custom-light: #69557a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1746",
  "rgb": {
    "r": 46,
    "g": 23,
    "b": 70
  },
  "hsl": {
    "h": 269.362,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26349,
    "c": 0.08572,
    "h": 303.6
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#2E1746
secondary
#5D7D3C
accent
#DA4E95
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1746

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

Preview Lab → · Contrast checker → · Palette generator →

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