#2E135A#2E135A

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

Color values

HEX#2E135A
RGBrgb(46, 19, 90)
HSLhsl(263, 65%, 21%)
HSVhsv(263, 79%, 35%)
CMYKcmyk(48.9%, 78.9%, 0%, 64.7%)
CIE-LABlab(14.31, 30.86, -37.51)
CIE-LCHlch(14.31, 48.57, 309.45°)
OKLaboklab(27.51% 0.0494 -0.1074)
OKLCHoklch(27.51% 0.118 294.7)
XYZxyz(3.2045, 1.7847, 9.8465)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E135A #3F5A13
analogous
#131C5A #2E135A #52135A
triadic
#2E135A #5A2E13 #135A2E
tetradic
#2E135A #5A131C #3F5A13 #135A52
square
#2E135A #5A131C #3F5A13 #135A52
split-complementary
#2E135A #5A5213 #1C5A13
monochromatic
#0D0519 #140827 #2E135A #481E8D #6228BF

Accessibility & contrast

On white

15.48
#2E135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2E135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E135A
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E135A#FFFFFF#000000##FFFFFF
##2E135A1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#212635
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e135a;
/* rgb */ color: rgb(46, 19, 90);
/* oklch */ color: oklch(27.5% 0.118 294.7);
Tailwind
colors: {
  custom: {
    50: '#6c5489',
    500: '#2e135a',
    950: '#000000',
  },
}
SCSS
$custom: #2e135a;
$custom-light: #6c5489;
$custom-dark: #000000;
JSON
{
  "hex": "#2e135a",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 262.817,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27513,
    "c": 0.11825,
    "h": 294.7
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#2E135A
secondary
#6F9237
accent
#E840A8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E135A

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

Preview Lab → · Contrast checker → · Palette generator →

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