#2E185A#2E185A

#2E185A is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.112 H 293.2°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2E185A
RGBrgb(46, 24, 90)
HSLhsl(260, 58%, 22%)
HSVhsv(260, 73%, 35%)
CMYKcmyk(48.9%, 73.3%, 0%, 64.7%)
CIE-LABlab(15.34, 28.00, -35.83)
CIE-LCHlch(15.34, 45.47, 308.00°)
OKLaboklab(28.24% 0.044 -0.1025)
OKLCHoklch(28.24% 0.112 293.2)
XYZxyz(3.2983, 1.9722, 9.8778)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E185A #445A18
analogous
#18235A #2E185A #4F185A
triadic
#2E185A #5A2E18 #185A2E
tetradic
#2E185A #5A1823 #445A18 #185A4F
square
#2E185A #5A1823 #445A18 #185A4F
split-complementary
#2E185A #5A4F18 #235A18
monochromatic
#0C0618 #150B2A #2E185A #47258A #5F32BB

Accessibility & contrast

On white

15.06
#2E185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E185A
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E185A#FFFFFF#000000##FFFFFF
##2E185A1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002559
Tritanopia (blue-blind)
#212836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e185a;
/* rgb */ color: rgb(46, 24, 90);
/* oklch */ color: oklch(28.2% 0.112 293.2);
Tailwind
colors: {
  custom: {
    50: '#6b5689',
    500: '#2e185a',
    950: '#000000',
  },
}
SCSS
$custom: #2e185a;
$custom-light: #6b5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2e185a",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 260,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28243,
    "c": 0.11158,
    "h": 293.2
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#2E185A
secondary
#75913D
accent
#E147AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E185A

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

Preview Lab → · Contrast checker → · Palette generator →

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