#2E145B#2E145B

#2E145B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.118 H 294.0°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2E145B
RGBrgb(46, 20, 91)
HSLhsl(262, 64%, 22%)
HSVhsv(262, 78%, 36%)
CMYKcmyk(49.5%, 78%, 0%, 64.3%)
CIE-LABlab(14.60, 30.62, -37.70)
CIE-LCHlch(14.60, 48.57, 309.08°)
OKLaboklab(27.75% 0.0481 -0.108)
OKLCHoklch(27.75% 0.118 294)
XYZxyz(3.2647, 1.8364, 10.0779)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E145B #415B14
analogous
#141E5B #2E145B #52145B
triadic
#2E145B #5B2E14 #145B2E
tetradic
#2E145B #5B141E #415B14 #145B52
square
#2E145B #5B141E #415B14 #145B52
split-complementary
#2E145B #5B5214 #1E5B14
monochromatic
#0D0619 #150929 #2E145B #471F8D #612ABF

Accessibility & contrast

On white

15.36
#2E145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E145B
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E145B#FFFFFF#000000##FFFFFF
##2E145B1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#212636
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e145b;
/* rgb */ color: rgb(46, 20, 91);
/* oklch */ color: oklch(27.7% 0.118 294.0);
Tailwind
colors: {
  custom: {
    50: '#6c548a',
    500: '#2e145b',
    950: '#000000',
  },
}
SCSS
$custom: #2e145b;
$custom-light: #6c548a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e145b",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 261.972,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27747,
    "c": 0.11826,
    "h": 294
  },
  "luminance": 0.01836
}

Semantic roles & 50–950 ramp

primary
#2E145B
secondary
#729338
accent
#E741AA
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E145B

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

Preview Lab → · Contrast checker → · Palette generator →

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