#2E154D#2E154D

#2E154D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.099 H 300.3°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2E154D
RGBrgb(46, 21, 77)
HSLhsl(267, 57%, 19%)
HSVhsv(267, 73%, 30%)
CMYKcmyk(40.3%, 72.7%, 0%, 69.8%)
CIE-LABlab(13.55, 25.83, -29.91)
CIE-LCHlch(13.55, 39.52, 310.82°)
OKLaboklab(26.6% 0.0497 -0.0851)
OKLCHoklch(26.6% 0.099 300.3)
XYZxyz(2.7341, 1.6530, 7.1948)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E154D #344D15
analogous
#15184D #2E154D #4A154D
triadic
#2E154D #4D2E15 #154D2E
tetradic
#2E154D #4D1518 #344D15 #154D4A
square
#2E154D #4D1518 #344D15 #154D4A
split-complementary
#2E154D #4D4A15 #184D15
monochromatic
#0E0718 #11081D #2E154D #4B227D #672FAD

Accessibility & contrast

On white

15.78
#2E154D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E154D
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E154D#FFFFFF#000000##FFFFFF
##2E154D1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e154d;
/* rgb */ color: rgb(46, 21, 77);
/* oklch */ color: oklch(26.6% 0.099 300.3);
Tailwind
colors: {
  custom: {
    50: '#6a547f',
    500: '#2e154d',
    950: '#000000',
  },
}
SCSS
$custom: #2e154d;
$custom-light: #6a547f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e154d",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 77
  },
  "hsl": {
    "h": 266.786,
    "s": 57.143,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26601,
    "c": 0.09856,
    "h": 300.3
  },
  "luminance": 0.01653
}

Semantic roles & 50–950 ramp

primary
#2E154D
secondary
#638539
accent
#E0479C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E154D

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

Preview Lab → · Contrast checker → · Palette generator →

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