#2E1045#2E1045

#2E1045 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.096 H 306.6°. Best body text is #FFFFFF at 16.46:1 contrast (WCAG AA passes).

Color values

HEX#2E1045
RGBrgb(46, 16, 69)
HSLhsl(274, 62%, 17%)
HSVhsv(274, 77%, 27%)
CMYKcmyk(33.3%, 76.8%, 0%, 72.9%)
CIE-LABlab(11.83, 26.44, -27.14)
CIE-LCHlch(11.83, 37.89, 314.25°)
OKLaboklab(25.16% 0.0572 -0.077)
OKLCHoklch(25.16% 0.096 306.6)
XYZxyz(2.3860, 1.3811, 5.7700)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1045 #274510
analogous
#141045 #2E1045 #451042
triadic
#2E1045 #452E10 #10452E
tetradic
#2E1045 #451410 #274510 #104245
square
#2E1045 #451410 #274510 #104245
split-complementary
#2E1045 #424510 #104514
monochromatic
#110619 #110619 #2E1045 #4F1C77 #7027A8

Accessibility & contrast

On white

16.46
#2E1045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#2E1045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1045
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1045#FFFFFF#000000##FFFFFF
##2E10451.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#031F44
Tritanopia (blue-blind)
#2A1C29
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2e1045;
/* rgb */ color: rgb(46, 16, 69);
/* oklch */ color: oklch(25.2% 0.096 306.6);
Tailwind
colors: {
  custom: {
    50: '#695179',
    500: '#2e1045',
    950: '#000000',
  },
}
SCSS
$custom: #2e1045;
$custom-light: #695179;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1045",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 69
  },
  "hsl": {
    "h": 273.962,
    "s": 62.353,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25157,
    "c": 0.09591,
    "h": 306.6
  },
  "luminance": 0.01381
}

Semantic roles & 50–950 ramp

primary
#2E1045
secondary
#537F32
accent
#E54289
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1045

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

Preview Lab → · Contrast checker → · Palette generator →

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