#2E187C#2E187C

#2E187C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.155 H 283.1°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2E187C
RGBrgb(46, 24, 124)
HSLhsl(253, 68%, 29%)
HSVhsv(253, 81%, 49%)
CMYKcmyk(62.9%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.75, 38.67, -52.46)
CIE-LCHlch(18.75, 65.17, 306.40°)
OKLaboklab(31.69% 0.0353 -0.1513)
OKLCHoklch(31.69% 0.155 283.1)
XYZxyz(5.0903, 2.6890, 19.3157)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E187C #667C18
analogous
#18347C #2E187C #60187C
triadic
#2E187C #7C2E18 #187C2E
tetradic
#2E187C #7C1834 #667C18 #187C60
square
#2E187C #7C1834 #667C18 #187C60
split-complementary
#2E187C #7C6018 #347C18
monochromatic
#0A051A #1B0E49 #2E187C #4122AF #5A36D8

Accessibility & contrast

On white

13.66
#2E187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E187C
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E187C#FFFFFF#000000##FFFFFF
##2E187C1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2e187c;
/* rgb */ color: rgb(46, 24, 124);
/* oklch */ color: oklch(31.7% 0.155 283.1);
Tailwind
colors: {
  custom: {
    50: '#7258a3',
    500: '#2e187c',
    950: '#000000',
  },
}
SCSS
$custom: #2e187c;
$custom-light: #7258a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2e187c",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 253.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31692,
    "c": 0.15532,
    "h": 283.1
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#2E187C
secondary
#98B13F
accent
#EA3DC4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2E187C

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

Preview Lab → · Contrast checker → · Palette generator →

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