#2E134F#2E134F

#2E134F is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.104 H 299.8°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#2E134F
RGBrgb(46, 19, 79)
HSLhsl(267, 61%, 19%)
HSVhsv(267, 76%, 31%)
CMYKcmyk(41.8%, 75.9%, 0%, 69%)
CIE-LABlab(13.30, 27.60, -31.69)
CIE-LCHlch(13.30, 42.02, 311.05°)
OKLaboklab(26.48% 0.0518 -0.0904)
OKLCHoklch(26.48% 0.104 299.8)
XYZxyz(2.7705, 1.6111, 7.5606)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E134F #344F13
analogous
#13164F #2E134F #4C134F
triadic
#2E134F #4F2E13 #134F2E
tetradic
#2E134F #4F1316 #344F13 #134F4C
square
#2E134F #4F1316 #344F13 #134F4C
split-complementary
#2E134F #4F4C13 #164F13
monochromatic
#0E0619 #11071E #2E134F #4B1F80 #672BB2

Accessibility & contrast

On white

15.88
#2E134F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2E134F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E134F
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E134F#FFFFFF#000000##FFFFFF
##2E134F1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#00224E
Tritanopia (blue-blind)
#26212F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2e134f;
/* rgb */ color: rgb(46, 19, 79);
/* oklch */ color: oklch(26.5% 0.104 299.8);
Tailwind
colors: {
  custom: {
    50: '#6a5381',
    500: '#2e134f',
    950: '#000000',
  },
}
SCSS
$custom: #2e134f;
$custom-light: #6a5381;
$custom-dark: #000000;
JSON
{
  "hex": "#2e134f",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 79
  },
  "hsl": {
    "h": 267,
    "s": 61.224,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26475,
    "c": 0.10418,
    "h": 299.8
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#2E134F
secondary
#638836
accent
#E4439C
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E134F

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

Preview Lab → · Contrast checker → · Palette generator →

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