#2E1245#2E1245

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

Color values

HEX#2E1245
RGBrgb(46, 18, 69)
HSLhsl(273, 59%, 17%)
HSVhsv(273, 74%, 27%)
CMYKcmyk(33.3%, 73.9%, 0%, 72.9%)
CIE-LABlab(12.24, 25.30, -26.47)
CIE-LCHlch(12.24, 36.62, 313.70°)
OKLaboklab(25.45% 0.0546 -0.075)
OKLCHoklch(25.45% 0.093 306)
XYZxyz(2.4170, 1.4431, 5.7803)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1245 #294512
analogous
#141245 #2E1245 #451243
triadic
#2E1245 #452E12 #12452E
tetradic
#2E1245 #451412 #294512 #124345
square
#2E1245 #451412 #294512 #124345
split-complementary
#2E1245 #434512 #124514
monochromatic
#100618 #100618 #2E1245 #4E1F76 #6F2BA6

Accessibility & contrast

On white

16.30
#2E1245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1245
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1245#FFFFFF#000000##FFFFFF
##2E12451.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#062044
Tritanopia (blue-blind)
#2A1D29
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1245;
/* rgb */ color: rgb(46, 18, 69);
/* oklch */ color: oklch(25.5% 0.093 306.0);
Tailwind
colors: {
  custom: {
    50: '#695279',
    500: '#2e1245',
    950: '#000000',
  },
}
SCSS
$custom: #2e1245;
$custom-light: #695279;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1245",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 272.941,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.25451,
    "c": 0.09279,
    "h": 306
  },
  "luminance": 0.01443
}

Semantic roles & 50–950 ramp

primary
#2E1245
secondary
#567E35
accent
#E2468C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1245

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

Preview Lab → · Contrast checker → · Palette generator →

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