#2E124E#2E124E

#2E124E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.2% C 0.104 H 300.7°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#2E124E
RGBrgb(46, 18, 78)
HSLhsl(268, 63%, 19%)
HSVhsv(268, 77%, 31%)
CMYKcmyk(41%, 76.9%, 0%, 69.4%)
CIE-LABlab(13.01, 27.87, -31.48)
CIE-LCHlch(13.01, 42.04, 311.52°)
OKLaboklab(26.24% 0.0532 -0.0897)
OKLCHoklch(26.24% 0.104 300.7)
XYZxyz(2.7178, 1.5635, 7.3648)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E124E #324E12
analogous
#12144E #2E124E #4C124E
triadic
#2E124E #4E2E12 #124E2E
tetradic
#2E124E #4E1214 #324E12 #124E4C
square
#2E124E #4E1214 #324E12 #124E4C
split-complementary
#2E124E #4E4C12 #144E12
monochromatic
#0F0619 #11071C #2E124E #4B1D80 #6929B1

Accessibility & contrast

On white

16.00
#2E124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E124E
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E124E#FFFFFF#000000##FFFFFF
##2E124E1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002150
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#27202E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e124e;
/* rgb */ color: rgb(46, 18, 78);
/* oklch */ color: oklch(26.2% 0.104 300.7);
Tailwind
colors: {
  custom: {
    50: '#6a5280',
    500: '#2e124e',
    950: '#000000',
  },
}
SCSS
$custom: #2e124e;
$custom-light: #6a5280;
$custom-dark: #000000;
JSON
{
  "hex": "#2e124e",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 268,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26239,
    "c": 0.10433,
    "h": 300.7
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#2E124E
secondary
#618735
accent
#E64299
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E124E

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

Preview Lab → · Contrast checker → · Palette generator →

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