#2E104D#2E104D

#2E104D is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.106 H 301.8°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#2E104D
RGBrgb(46, 16, 77)
HSLhsl(270, 66%, 18%)
HSVhsv(270, 79%, 30%)
CMYKcmyk(40.3%, 79.2%, 0%, 69.8%)
CIE-LABlab(12.53, 28.68, -31.57)
CIE-LCHlch(12.53, 42.65, 312.25°)
OKLaboklab(25.87% 0.0558 -0.09)
OKLCHoklch(25.87% 0.106 301.8)
XYZxyz(2.6512, 1.4872, 7.1671)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E104D #2F4D10
analogous
#10114D #2E104D #4C104D
triadic
#2E104D #4D2E10 #104D2E
tetradic
#2E104D #4D1011 #2F4D10 #104D4C
square
#2E104D #4D1011 #2F4D10 #104D4C
split-complementary
#2E104D #4D4C10 #114D10
monochromatic
#0F0519 #10051A #2E104D #4C1B80 #6B25B2

Accessibility & contrast

On white

16.19
#2E104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E104D
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E104D#FFFFFF#000000##FFFFFF
##2E104D1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#271F2D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e104d;
/* rgb */ color: rgb(46, 16, 77);
/* oklch */ color: oklch(25.9% 0.106 301.8);
Tailwind
colors: {
  custom: {
    50: '#6a517f',
    500: '#2e104d',
    950: '#000000',
  },
}
SCSS
$custom: #2e104d;
$custom-light: #6a517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e104d",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 269.508,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25871,
    "c": 0.10587,
    "h": 301.8
  },
  "luminance": 0.01487
}

Semantic roles & 50–950 ramp

primary
#2E104D
secondary
#5D8732
accent
#E93F95
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E104D

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

Preview Lab → · Contrast checker → · Palette generator →

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