#2E187B#2E187B

#2E187B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.154 H 283.3°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2E187B
RGBrgb(46, 24, 123)
HSLhsl(253, 67%, 29%)
HSVhsv(253, 80%, 48%)
CMYKcmyk(62.6%, 80.5%, 0%, 51.8%)
CIE-LABlab(18.64, 38.36, -52.00)
CIE-LCHlch(18.64, 64.62, 306.42°)
OKLaboklab(31.58% 0.0356 -0.1499)
OKLCHoklch(31.58% 0.154 283.3)
XYZxyz(5.0274, 2.6638, 18.9843)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E187B #657B18
analogous
#18347B #2E187B #60187B
triadic
#2E187B #7B2E18 #187B2E
tetradic
#2E187B #7B1834 #657B18 #187B60
square
#2E187B #7B1834 #657B18 #187B60
split-complementary
#2E187B #7B6018 #347B18
monochromatic
#0A051A #1B0E48 #2E187B #4122AE #5A36D8

Accessibility & contrast

On white

13.70
#2E187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E187B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E187B#FFFFFF#000000##FFFFFF
##2E187B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002A79
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e187b;
/* rgb */ color: rgb(46, 24, 123);
/* oklch */ color: oklch(31.6% 0.154 283.3);
Tailwind
colors: {
  custom: {
    50: '#7258a2',
    500: '#2e187b',
    950: '#000000',
  },
}
SCSS
$custom: #2e187b;
$custom-light: #7258a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e187b",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 253.333,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31584,
    "c": 0.15408,
    "h": 283.3
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2E187B
secondary
#97B03F
accent
#EA3EC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E187B

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

Preview Lab → · Contrast checker → · Palette generator →

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