#2E184F#2E184F

#2E184F is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.097 H 298.1°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#2E184F
RGBrgb(46, 24, 79)
HSLhsl(264, 53%, 20%)
HSVhsv(264, 70%, 31%)
CMYKcmyk(41.8%, 69.6%, 0%, 69%)
CIE-LABlab(14.39, 24.59, -29.92)
CIE-LCHlch(14.39, 38.73, 309.42°)
OKLaboklab(27.26% 0.0455 -0.0852)
OKLCHoklch(27.26% 0.097 298.1)
XYZxyz(2.8643, 1.7986, 7.5919)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E184F #394F18
analogous
#181D4F #2E184F #49184F
triadic
#2E184F #4F2E18 #184F2E
tetradic
#2E184F #4F181D #394F18 #184F49
square
#2E184F #4F181D #394F18 #184F49
split-complementary
#2E184F #4F4918 #1D4F18
monochromatic
#0E0717 #130A20 #2E184F #49267E #6535AD

Accessibility & contrast

On white

15.44
#2E184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E184F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E184F
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E184F#FFFFFF#000000##FFFFFF
##2E184F1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00244E
Tritanopia (blue-blind)
#262431
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e184f;
/* rgb */ color: rgb(46, 24, 79);
/* oklch */ color: oklch(27.3% 0.097 298.1);
Tailwind
colors: {
  custom: {
    50: '#6a5681',
    500: '#2e184f',
    950: '#000000',
  },
}
SCSS
$custom: #2e184f;
$custom-light: #6a5681;
$custom-dark: #000000;
JSON
{
  "hex": "#2e184f",
  "rgb": {
    "r": 46,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 264,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27262,
    "c": 0.09656,
    "h": 298.1
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#2E184F
secondary
#69863D
accent
#DD4BA2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E184F

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

Preview Lab → · Contrast checker → · Palette generator →

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