#2E153F#2E153F

#2E153F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.080 H 309.3°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2E153F
RGBrgb(46, 21, 63)
HSLhsl(276, 50%, 16%)
HSVhsv(276, 67%, 25%)
CMYKcmyk(27%, 66.7%, 0%, 75.3%)
CIE-LABlab(12.46, 21.80, -21.91)
CIE-LCHlch(12.46, 30.91, 314.85°)
OKLaboklab(25.46% 0.0505 -0.0617)
OKLCHoklch(25.46% 0.08 309.3)
XYZxyz(2.2919, 1.4761, 4.8658)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E153F #263F15
analogous
#19153F #2E153F #3F153B
triadic
#2E153F #3F2E15 #153F2E
tetradic
#2E153F #3F1915 #263F15 #153B3F
square
#2E153F #3F1915 #263F15 #153B3F
split-complementary
#2E153F #3B3F15 #153F19
monochromatic
#110817 #110817 #2E153F #50246D #71349B

Accessibility & contrast

On white

16.21
#2E153F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E153F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E153F
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E153F#FFFFFF#000000##FFFFFF
##2E153F1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061F40
Deuteranopia (green-blind)
#10213E
Tritanopia (blue-blind)
#2C1D27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e153f;
/* rgb */ color: rgb(46, 21, 63);
/* oklch */ color: oklch(25.5% 0.080 309.3);
Tailwind
colors: {
  custom: {
    50: '#685474',
    500: '#2e153f',
    950: '#000000',
  },
}
SCSS
$custom: #2e153f;
$custom-light: #685474;
$custom-dark: #000000;
JSON
{
  "hex": "#2e153f",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 63
  },
  "hsl": {
    "h": 275.714,
    "s": 50,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25459,
    "c": 0.0797,
    "h": 309.3
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#2E153F
secondary
#527739
accent
#DA4E87
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E153F

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

Preview Lab → · Contrast checker → · Palette generator →

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