#2E154E#2E154E

#2E154E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.100 H 299.7°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2E154E
RGBrgb(46, 21, 78)
HSLhsl(266, 58%, 19%)
HSVhsv(266, 73%, 31%)
CMYKcmyk(41%, 73.1%, 0%, 69.4%)
CIE-LABlab(13.63, 26.13, -30.46)
CIE-LCHlch(13.63, 40.13, 310.63°)
OKLaboklab(26.69% 0.0495 -0.0867)
OKLCHoklch(26.69% 0.1 299.7)
XYZxyz(2.7697, 1.6672, 7.3821)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E154E #354E15
analogous
#15184E #2E154E #4B154E
triadic
#2E154E #4E2E15 #154E2E
tetradic
#2E154E #4E1518 #354E15 #154E4B
square
#2E154E #4E1518 #354E15 #154E4B
split-complementary
#2E154E #4E4B15 #184E15
monochromatic
#0E0618 #12081E #2E154E #4A227E #672FAE

Accessibility & contrast

On white

15.75
#2E154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E154E
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E154E#FFFFFF#000000##FFFFFF
##2E154E1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#27222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e154e;
/* rgb */ color: rgb(46, 21, 78);
/* oklch */ color: oklch(26.7% 0.100 299.7);
Tailwind
colors: {
  custom: {
    50: '#6a5480',
    500: '#2e154e',
    950: '#000000',
  },
}
SCSS
$custom: #2e154e;
$custom-light: #6a5480;
$custom-dark: #000000;
JSON
{
  "hex": "#2e154e",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 266.316,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26688,
    "c": 0.09989,
    "h": 299.7
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#2E154E
secondary
#648639
accent
#E1479D
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E154E

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

Preview Lab → · Contrast checker → · Palette generator →

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