#2E1049#2E1049

#2E1049 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.5% C 0.101 H 304.1°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2E1049
RGBrgb(46, 16, 73)
HSLhsl(272, 64%, 17%)
HSVhsv(272, 78%, 29%)
CMYKcmyk(37%, 78.1%, 0%, 71.4%)
CIE-LABlab(12.17, 27.55, -29.38)
CIE-LCHlch(12.17, 40.27, 313.16°)
OKLaboklab(25.51% 0.0566 -0.0835)
OKLCHoklch(25.51% 0.101 304.1)
XYZxyz(2.5143, 1.4325, 6.4461)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1049 #2B4910
analogous
#121049 #2E1049 #491048
triadic
#2E1049 #492E10 #10492E
tetradic
#2E1049 #491210 #2B4910 #104849
square
#2E1049 #491210 #2B4910 #104849
split-complementary
#2E1049 #484910 #104912
monochromatic
#100619 #100619 #2E1049 #4E1B7B #6D26AD

Accessibility & contrast

On white

16.32
#2E1049 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1049
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1049#FFFFFF#000000##FFFFFF
##2E10491.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4B
Deuteranopia (green-blind)
#002048
Tritanopia (blue-blind)
#291D2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1049;
/* rgb */ color: rgb(46, 16, 73);
/* oklch */ color: oklch(25.5% 0.101 304.1);
Tailwind
colors: {
  custom: {
    50: '#6a517c',
    500: '#2e1049',
    950: '#000000',
  },
}
SCSS
$custom: #2e1049;
$custom-light: #6a517c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1049",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 73
  },
  "hsl": {
    "h": 271.579,
    "s": 64.045,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25508,
    "c": 0.1009,
    "h": 304.1
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#2E1049
secondary
#588332
accent
#E74190
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E1049

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

Preview Lab → · Contrast checker → · Palette generator →

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