#2E185B#2E185B

#2E185B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.113 H 292.8°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#2E185B
RGBrgb(46, 24, 91)
HSLhsl(260, 58%, 23%)
HSVhsv(260, 74%, 36%)
CMYKcmyk(49.5%, 73.6%, 0%, 64.3%)
CIE-LABlab(15.43, 28.31, -36.35)
CIE-LCHlch(15.43, 46.08, 307.91°)
OKLaboklab(28.34% 0.0438 -0.1041)
OKLCHoklch(28.34% 0.113 292.8)
XYZxyz(3.3412, 1.9893, 10.1034)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E185B #455B18
analogous
#18245B #2E185B #4F185B
triadic
#2E185B #5B2E18 #185B2E
tetradic
#2E185B #5B1824 #455B18 #185B4F
square
#2E185B #5B1824 #455B18 #185B4F
split-complementary
#2E185B #5B4F18 #245B18
monochromatic
#0C0618 #160B2B #2E185B #46258B #5F32BC

Accessibility & contrast

On white

15.02
#2E185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E185B
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E185B#FFFFFF#000000##FFFFFF
##2E185B1.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#212937
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2e185b;
/* rgb */ color: rgb(46, 24, 91);
/* oklch */ color: oklch(28.3% 0.113 292.8);
Tailwind
colors: {
  custom: {
    50: '#6c578a',
    500: '#2e185b',
    950: '#000000',
  },
}
SCSS
$custom: #2e185b;
$custom-light: #6c578a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e185b",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 259.701,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28336,
    "c": 0.11293,
    "h": 292.8
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#2E185B
secondary
#76923D
accent
#E146AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E185B

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

Preview Lab → · Contrast checker → · Palette generator →

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