#2E146F#2E146F

#2E146F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.143 H 287.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2E146F
RGBrgb(46, 20, 111)
HSLhsl(257, 69%, 26%)
HSVhsv(257, 82%, 44%)
CMYKcmyk(58.6%, 82%, 0%, 56.5%)
CIE-LABlab(16.64, 36.70, -47.56)
CIE-LCHlch(16.64, 60.07, 307.65°)
OKLaboklab(29.8% 0.0422 -0.1369)
OKLCHoklch(29.8% 0.143 287.1)
XYZxyz(4.2453, 2.2286, 15.2423)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E146F #556F14
analogous
#14276F #2E146F #5B146F
triadic
#2E146F #6F2E14 #146F2E
tetradic
#2E146F #6F1427 #556F14 #146F5B
square
#2E146F #6F1427 #556F14 #146F5B
split-complementary
#2E146F #6F5B14 #276F14
monochromatic
#0B051A #190B3B #2E146F #431DA3 #5927D7

Accessibility & contrast

On white

14.52
#2E146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2E146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E146F
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E146F#FFFFFF#000000##FFFFFF
##2E146F1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#102E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e146f;
/* rgb */ color: rgb(46, 20, 111);
/* oklch */ color: oklch(29.8% 0.143 287.1);
Tailwind
colors: {
  custom: {
    50: '#705599',
    500: '#2e146f',
    950: '#000000',
  },
}
SCSS
$custom: #2e146f;
$custom-light: #705599;
$custom-dark: #000000;
JSON
{
  "hex": "#2e146f",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 257.143,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.298,
    "c": 0.14327,
    "h": 287.1
  },
  "luminance": 0.02229
}

Semantic roles & 50–950 ramp

primary
#2E146F
secondary
#87A639
accent
#EC3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E146F

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

Preview Lab → · Contrast checker → · Palette generator →

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