#2E114F#2E114F

#2E114F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.107 H 300.4°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#2E114F
RGBrgb(46, 17, 79)
HSLhsl(268, 65%, 19%)
HSVhsv(268, 78%, 31%)
CMYKcmyk(41.8%, 78.5%, 0%, 69%)
CIE-LABlab(12.90, 28.71, -32.34)
CIE-LCHlch(12.90, 43.25, 311.60°)
OKLaboklab(26.19% 0.0542 -0.0923)
OKLCHoklch(26.19% 0.107 300.4)
XYZxyz(2.7381, 1.5462, 7.5498)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E114F #324F11
analogous
#11134F #2E114F #4D114F
triadic
#2E114F #4F2E11 #114F2E
tetradic
#2E114F #4F1113 #324F11 #114F4D
square
#2E114F #4F1113 #324F11 #114F4D
split-complementary
#2E114F #4F4D11 #134F11
monochromatic
#0F0519 #11061D #2E114F #4B1C81 #6927B4

Accessibility & contrast

On white

16.04
#2E114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2E114F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E114F
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E114F#FFFFFF#000000##FFFFFF
##2E114F1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#27202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e114f;
/* rgb */ color: rgb(46, 17, 79);
/* oklch */ color: oklch(26.2% 0.107 300.4);
Tailwind
colors: {
  custom: {
    50: '#6a5281',
    500: '#2e114f',
    950: '#000000',
  },
}
SCSS
$custom: #2e114f;
$custom-light: #6a5281;
$custom-dark: #000000;
JSON
{
  "hex": "#2e114f",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 268.065,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.26191,
    "c": 0.107,
    "h": 300.4
  },
  "luminance": 0.01546
}

Semantic roles & 50–950 ramp

primary
#2E114F
secondary
#618833
accent
#E84099
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E114F

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

Preview Lab → · Contrast checker → · Palette generator →

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