#2E154F#2E154F

#2E154F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.101 H 299.2°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2E154F
RGBrgb(46, 21, 79)
HSLhsl(266, 58%, 20%)
HSVhsv(266, 73%, 31%)
CMYKcmyk(41.8%, 73.4%, 0%, 69%)
CIE-LABlab(13.72, 26.43, -31.01)
CIE-LCHlch(13.72, 40.74, 310.44°)
OKLaboklab(26.78% 0.0494 -0.0884)
OKLCHoklch(26.78% 0.101 299.2)
XYZxyz(2.8058, 1.6817, 7.5724)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E154F #364F15
analogous
#15194F #2E154F #4B154F
triadic
#2E154F #4F2E15 #154F2E
tetradic
#2E154F #4F1519 #364F15 #154F4B
square
#2E154F #4F1519 #364F15 #154F4B
split-complementary
#2E154F #4F4B15 #194F15
monochromatic
#0E0618 #12081F #2E154F #4A227F #662FB0

Accessibility & contrast

On white

15.71
#2E154F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E154F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E154F
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E154F#FFFFFF#000000##FFFFFF
##2E154F1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#262230
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e154f;
/* rgb */ color: rgb(46, 21, 79);
/* oklch */ color: oklch(26.8% 0.101 299.2);
Tailwind
colors: {
  custom: {
    50: '#6a5481',
    500: '#2e154f',
    950: '#000000',
  },
}
SCSS
$custom: #2e154f;
$custom-light: #6a5481;
$custom-dark: #000000;
JSON
{
  "hex": "#2e154f",
  "rgb": {
    "r": 46,
    "g": 21,
    "b": 79
  },
  "hsl": {
    "h": 265.862,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26777,
    "c": 0.10122,
    "h": 299.2
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#2E154F
secondary
#658739
accent
#E1479F
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E154F

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

Preview Lab → · Contrast checker → · Palette generator →

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