#2E145F#2E145F

#2E145F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.123 H 292.4°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2E145F
RGBrgb(46, 20, 95)
HSLhsl(261, 65%, 23%)
HSVhsv(261, 79%, 37%)
CMYKcmyk(51.6%, 78.9%, 0%, 62.7%)
CIE-LABlab(14.99, 31.83, -39.74)
CIE-LCHlch(14.99, 50.92, 308.69°)
OKLaboklab(28.14% 0.0471 -0.114)
OKLCHoklch(28.14% 0.123 292.4)
XYZxyz(3.4419, 1.9073, 11.0110)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E145F #455F14
analogous
#14205F #2E145F #53145F
triadic
#2E145F #5F2E14 #145F2E
tetradic
#2E145F #5F1420 #455F14 #145F53
square
#2E145F #5F1420 #455F14 #145F53
split-complementary
#2E145F #5F5314 #205F14
monochromatic
#0C0519 #16092C #2E145F #461F92 #5F29C4

Accessibility & contrast

On white

15.20
#2E145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E145F
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E145F#FFFFFF#000000##FFFFFF
##2E145F1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#1E2838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e145f;
/* rgb */ color: rgb(46, 20, 95);
/* oklch */ color: oklch(28.1% 0.123 292.4);
Tailwind
colors: {
  custom: {
    50: '#6d548d',
    500: '#2e145f',
    950: '#000000',
  },
}
SCSS
$custom: #2e145f;
$custom-light: #6d548d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e145f",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 260.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28142,
    "c": 0.12335,
    "h": 292.4
  },
  "luminance": 0.01907
}

Semantic roles & 50–950 ramp

primary
#2E145F
secondary
#769738
accent
#E840AE
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E145F

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

Preview Lab → · Contrast checker → · Palette generator →

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