#2E1945#2E1945

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

Color values

HEX#2E1945
RGBrgb(46, 25, 69)
HSLhsl(269, 47%, 18%)
HSVhsv(269, 64%, 27%)
CMYKcmyk(33.3%, 63.8%, 0%, 72.9%)
CIE-LABlab(13.86, 20.94, -23.87)
CIE-LCHlch(13.86, 31.75, 311.25°)
OKLaboklab(26.63% 0.0444 -0.0674)
OKLCHoklch(26.63% 0.081 303.4)
XYZxyz(2.5483, 1.7058, 5.8241)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1945 #304519
analogous
#191A45 #2E1945 #441945
triadic
#2E1945 #452E19 #19452E
tetradic
#2E1945 #45191A #304519 #194544
square
#2E1945 #45191A #304519 #194544
split-complementary
#2E1945 #454419 #1A4519
monochromatic
#0F0816 #100918 #2E1945 #4C2972 #6A3A9F

Accessibility & contrast

On white

15.66
#2E1945 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1945
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1945#FFFFFF#000000##FFFFFF
##2E19451.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072346
Deuteranopia (green-blind)
#0F2344
Tritanopia (blue-blind)
#2A222C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1945;
/* rgb */ color: rgb(46, 25, 69);
/* oklch */ color: oklch(26.6% 0.081 303.4);
Tailwind
colors: {
  custom: {
    50: '#695679',
    500: '#2e1945',
    950: '#000000',
  },
}
SCSS
$custom: #2e1945;
$custom-light: #695679;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1945",
  "rgb": {
    "r": 46,
    "g": 25,
    "b": 69
  },
  "hsl": {
    "h": 268.636,
    "s": 46.809,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26628,
    "c": 0.08073,
    "h": 303.4
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#2E1945
secondary
#5E7B3E
accent
#D65197
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #2E1945

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

Preview Lab → · Contrast checker → · Palette generator →

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