#2E105B#2E105B

#2E105B is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.2% C 0.123 H 295.0°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2E105B
RGBrgb(46, 16, 91)
HSLhsl(264, 70%, 21%)
HSVhsv(264, 82%, 36%)
CMYKcmyk(49.5%, 82.4%, 0%, 64.3%)
CIE-LABlab(13.87, 32.71, -38.91)
CIE-LCHlch(13.87, 50.84, 310.06°)
OKLaboklab(27.23% 0.052 -0.1115)
OKLCHoklch(27.23% 0.123 295)
XYZxyz(3.1998, 1.7067, 10.0563)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E105B #3D5B10
analogous
#10175B #2E105B #53105B
triadic
#2E105B #5B2E10 #105B2E
tetradic
#2E105B #5B1017 #3D5B10 #105B53
square
#2E105B #5B1017 #3D5B10 #105B53
split-complementary
#2E105B #5B5310 #175B10
monochromatic
#0D051A #140727 #2E105B #48198F #6322C3

Accessibility & contrast

On white

15.66
#2E105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E105B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E105B
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E105B#FFFFFF#000000##FFFFFF
##2E105B1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#212535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e105b;
/* rgb */ color: rgb(46, 16, 91);
/* oklch */ color: oklch(27.2% 0.123 295.0);
Tailwind
colors: {
  custom: {
    50: '#6c528a',
    500: '#2e105b',
    950: '#000000',
  },
}
SCSS
$custom: #2e105b;
$custom-light: #6c528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e105b",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 264,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27228,
    "c": 0.12307,
    "h": 295
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#2E105B
secondary
#6D9433
accent
#ED3BA6
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2E105B

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

Preview Lab → · Contrast checker → · Palette generator →

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