#2E154B#2E154B

#2E154B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.096 H 301.4°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#2E154B
RGBrgb(46, 21, 75)
HSLhsl(268, 56%, 19%)
HSVhsv(268, 72%, 29%)
CMYKcmyk(38.7%, 72%, 0%, 70.6%)
CIE-LABlab(13.38, 25.24, -28.80)
CIE-LCHlch(13.38, 38.30, 311.23°)
OKLaboklab(26.43% 0.0499 -0.0819)
OKLCHoklch(26.43% 0.096 301.4)
XYZxyz(2.6646, 1.6252, 6.8286)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E154B #324B15
analogous
#15174B #2E154B #49154B
triadic
#2E154B #4B2E15 #154B2E
tetradic
#2E154B #4B1517 #324B15 #154B49
square
#2E154B #4B1517 #324B15 #154B49
split-complementary
#2E154B #4B4915 #174B15
monochromatic
#0F0718 #11081B #2E154B #4B227B #6930AB

Accessibility & contrast

On white

15.85
#2E154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E154B
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E154B#FFFFFF#000000##FFFFFF
##2E154B1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#01224A
Tritanopia (blue-blind)
#28212D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e154b;
/* rgb */ color: rgb(46, 21, 75);
/* oklch */ color: oklch(26.4% 0.096 301.4);
Tailwind
colors: {
  custom: {
    50: '#6a547e',
    500: '#2e154b',
    950: '#000000',
  },
}
SCSS
$custom: #2e154b;
$custom-light: #6a547e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e154b",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 267.778,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26428,
    "c": 0.09589,
    "h": 301.4
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#2E154B
secondary
#618339
accent
#E0489A
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E154B

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

Preview Lab → · Contrast checker → · Palette generator →

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