#2E187A#2E187A

#2E187A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.153 H 283.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#2E187A
RGBrgb(46, 24, 122)
HSLhsl(253, 67%, 29%)
HSVhsv(253, 80%, 48%)
CMYKcmyk(62.3%, 80.3%, 0%, 52.2%)
CIE-LABlab(18.54, 38.05, -51.54)
CIE-LCHlch(18.54, 64.06, 306.44°)
OKLaboklab(31.48% 0.0359 -0.1486)
OKLCHoklch(31.48% 0.153 283.6)
XYZxyz(4.9651, 2.6389, 18.6563)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E187A #647A18
analogous
#18337A #2E187A #5F187A
triadic
#2E187A #7A2E18 #187A2E
tetradic
#2E187A #7A1833 #647A18 #187A5F
square
#2E187A #7A1833 #647A18 #187A5F
split-complementary
#2E187A #7A5F18 #337A18
monochromatic
#0A051A #1B0E47 #2E187A #4122AD #5A35D7

Accessibility & contrast

On white

13.75
#2E187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E187A
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E187A#FFFFFF#000000##FFFFFF
##2E187A1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002A78
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e187a;
/* rgb */ color: rgb(46, 24, 122);
/* oklch */ color: oklch(31.5% 0.153 283.6);
Tailwind
colors: {
  custom: {
    50: '#7158a1',
    500: '#2e187a',
    950: '#000000',
  },
}
SCSS
$custom: #2e187a;
$custom-light: #7158a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e187a",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 253.469,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31475,
    "c": 0.15285,
    "h": 283.6
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#2E187A
secondary
#96AF3F
accent
#EA3EC3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E187A

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

Preview Lab → · Contrast checker → · Palette generator →

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