#2E114B#2E114B

#2E114B is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.102 H 302.6°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#2E114B
RGBrgb(46, 17, 75)
HSLhsl(270, 63%, 18%)
HSVhsv(270, 77%, 29%)
CMYKcmyk(38.7%, 77.3%, 0%, 70.6%)
CIE-LABlab(12.54, 27.57, -30.16)
CIE-LCHlch(12.54, 40.86, 312.43°)
OKLaboklab(25.83% 0.055 -0.0859)
OKLCHoklch(25.83% 0.102 302.6)
XYZxyz(2.5969, 1.4897, 6.8060)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E114B #2E4B11
analogous
#11114B #2E114B #4B114B
triadic
#2E114B #4B2E11 #114B2E
tetradic
#2E114B #4B1111 #2E4B11 #114B4B
square
#2E114B #4B1111 #2E4B11 #114B4B
split-complementary
#2E114B #4B4B11 #114B11
monochromatic
#0F0619 #0F0619 #2E114B #4D1C7D #6B28AF

Accessibility & contrast

On white

16.18
#2E114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2E114B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E114B
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E114B#FFFFFF#000000##FFFFFF
##2E114B1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204D
Deuteranopia (green-blind)
#00204A
Tritanopia (blue-blind)
#281F2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e114b;
/* rgb */ color: rgb(46, 17, 75);
/* oklch */ color: oklch(25.8% 0.102 302.6);
Tailwind
colors: {
  custom: {
    50: '#6a527e',
    500: '#2e114b',
    950: '#000000',
  },
}
SCSS
$custom: #2e114b;
$custom-light: #6a527e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e114b",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 270,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25826,
    "c": 0.10196,
    "h": 302.6
  },
  "luminance": 0.0149
}

Semantic roles & 50–950 ramp

primary
#2E114B
secondary
#5C8433
accent
#E64294
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E114B

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

Preview Lab → · Contrast checker → · Palette generator →

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