#2E146E#2E146E

#2E146E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.142 H 287.4°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#2E146E
RGBrgb(46, 20, 110)
HSLhsl(257, 69%, 25%)
HSVhsv(257, 82%, 43%)
CMYKcmyk(58.2%, 81.8%, 0%, 56.9%)
CIE-LABlab(16.54, 36.39, -47.09)
CIE-LCHlch(16.54, 59.51, 307.70°)
OKLaboklab(29.69% 0.0425 -0.1355)
OKLCHoklch(29.69% 0.142 287.4)
XYZxyz(4.1905, 2.2067, 14.9540)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E146E #546E14
analogous
#14276E #2E146E #5B146E
triadic
#2E146E #6E2E14 #146E2E
tetradic
#2E146E #6E1427 #546E14 #146E5B
square
#2E146E #6E1427 #546E14 #146E5B
split-complementary
#2E146E #6E5B14 #276E14
monochromatic
#0B051A #180B3A #2E146E #441DA2 #5927D6

Accessibility & contrast

On white

14.57
#2E146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2E146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E146E
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E146E#FFFFFF#000000##FFFFFF
##2E146E1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#122E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2e146e;
/* rgb */ color: rgb(46, 20, 110);
/* oklch */ color: oklch(29.7% 0.142 287.4);
Tailwind
colors: {
  custom: {
    50: '#6f5599',
    500: '#2e146e',
    950: '#000000',
  },
}
SCSS
$custom: #2e146e;
$custom-light: #6f5599;
$custom-dark: #000000;
JSON
{
  "hex": "#2e146e",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 257.333,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29693,
    "c": 0.14205,
    "h": 287.4
  },
  "luminance": 0.02207
}

Semantic roles & 50–950 ramp

primary
#2E146E
secondary
#86A539
accent
#EC3CB9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2E146E

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

Preview Lab → · Contrast checker → · Palette generator →

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