#2E145E#2E145E

#2E145E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.122 H 292.8°. Best body text is #FFFFFF at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#2E145E
RGBrgb(46, 20, 94)
HSLhsl(261, 65%, 22%)
HSVhsv(261, 79%, 37%)
CMYKcmyk(51.1%, 78.7%, 0%, 63.1%)
CIE-LABlab(14.89, 31.53, -39.24)
CIE-LCHlch(14.89, 50.33, 308.78°)
OKLaboklab(28.04% 0.0473 -0.1125)
OKLCHoklch(28.04% 0.122 292.8)
XYZxyz(3.3967, 1.8892, 10.7732)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E145E #445E14
analogous
#141F5E #2E145E #53145E
triadic
#2E145E #5E2E14 #145E2E
tetradic
#2E145E #5E141F #445E14 #145E53
square
#2E145E #5E141F #445E14 #145E53
split-complementary
#2E145E #5E5314 #1F5E14
monochromatic
#0C0519 #15092C #2E145E #471F90 #5F29C3

Accessibility & contrast

On white

15.24
#2E145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E145E
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E145E#FFFFFF#000000##FFFFFF
##2E145E1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1F2838
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e145e;
/* rgb */ color: rgb(46, 20, 94);
/* oklch */ color: oklch(28.0% 0.122 292.8);
Tailwind
colors: {
  custom: {
    50: '#6c548c',
    500: '#2e145e',
    950: '#000000',
  },
}
SCSS
$custom: #2e145e;
$custom-light: #6c548c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e145e",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 261.081,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28042,
    "c": 0.12208,
    "h": 292.8
  },
  "luminance": 0.01889
}

Semantic roles & 50–950 ramp

primary
#2E145E
secondary
#759638
accent
#E840AD
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E145E

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

Preview Lab → · Contrast checker → · Palette generator →

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