#2E187D#2E187D

#2E187D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.157 H 282.9°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#2E187D
RGBrgb(46, 24, 125)
HSLhsl(253, 68%, 29%)
HSVhsv(253, 81%, 49%)
CMYKcmyk(63.2%, 80.8%, 0%, 51%)
CIE-LABlab(18.86, 38.98, -52.92)
CIE-LCHlch(18.86, 65.73, 306.38°)
OKLaboklab(31.8% 0.035 -0.1526)
OKLCHoklch(31.8% 0.157 282.9)
XYZxyz(5.1539, 2.7144, 19.6504)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E187D #677D18
analogous
#18357D #2E187D #61187D
triadic
#2E187D #7D2E18 #187D2E
tetradic
#2E187D #7D1835 #677D18 #187D61
square
#2E187D #7D1835 #677D18 #187D61
split-complementary
#2E187D #7D6118 #357D18
monochromatic
#09051A #1B0E4A #2E187D #4122B0 #5A37D9

Accessibility & contrast

On white

13.61
#2E187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2E187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E187D
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E187D#FFFFFF#000000##FFFFFF
##2E187D1.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#002A7B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e187d;
/* rgb */ color: rgb(46, 24, 125);
/* oklch */ color: oklch(31.8% 0.157 282.9);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2e187d',
    950: '#000000',
  },
}
SCSS
$custom: #2e187d;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e187d",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 253.069,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31801,
    "c": 0.15654,
    "h": 282.9
  },
  "luminance": 0.02715
}

Semantic roles & 50–950 ramp

primary
#2E187D
secondary
#99B23F
accent
#EB3DC5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E187D

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

Preview Lab → · Contrast checker → · Palette generator →

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