#2E1243#2E1243

#2E1243 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.3% C 0.090 H 307.4°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#2E1243
RGBrgb(46, 18, 67)
HSLhsl(274, 58%, 17%)
HSVhsv(274, 73%, 26%)
CMYKcmyk(31.3%, 73.1%, 0%, 73.7%)
CIE-LABlab(12.08, 24.74, -25.33)
CIE-LCHlch(12.08, 35.41, 314.33°)
OKLaboklab(25.29% 0.0548 -0.0717)
OKLCHoklch(25.29% 0.09 307.4)
XYZxyz(2.3559, 1.4187, 5.4588)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1243 #274312
analogous
#161243 #2E1243 #431240
triadic
#2E1243 #432E12 #12432E
tetradic
#2E1243 #431612 #274312 #124043
square
#2E1243 #431612 #274312 #124043
split-complementary
#2E1243 #404312 #124316
monochromatic
#110618 #110618 #2E1243 #4F1F73 #702CA3

Accessibility & contrast

On white

16.36
#2E1243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1243
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1243#FFFFFF#000000##FFFFFF
##2E12431.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#082042
Tritanopia (blue-blind)
#2B1C28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1243;
/* rgb */ color: rgb(46, 18, 67);
/* oklch */ color: oklch(25.3% 0.090 307.4);
Tailwind
colors: {
  custom: {
    50: '#695277',
    500: '#2e1243',
    950: '#000000',
  },
}
SCSS
$custom: #2e1243;
$custom-light: #695277;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1243",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 67
  },
  "hsl": {
    "h": 274.286,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25285,
    "c": 0.09021,
    "h": 307.4
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#2E1243
secondary
#537C35
accent
#E14789
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060209
muted
#7A787B

Preview Lab

Preview with #2E1243

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

Preview Lab → · Contrast checker → · Palette generator →

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