#2E114A#2E114A

#2E114A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.101 H 303.2°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#2E114A
RGBrgb(46, 17, 74)
HSLhsl(271, 63%, 18%)
HSVhsv(271, 77%, 29%)
CMYKcmyk(37.8%, 77%, 0%, 71%)
CIE-LABlab(12.46, 27.28, -29.61)
CIE-LCHlch(12.46, 40.26, 312.65°)
OKLaboklab(25.74% 0.0552 -0.0842)
OKLCHoklch(25.74% 0.101 303.2)
XYZxyz(2.5629, 1.4762, 6.6271)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E114A #2D4A11
analogous
#11114A #2E114A #4A1149
triadic
#2E114A #4A2E11 #114A2E
tetradic
#2E114A #4A1111 #2D4A11 #11494A
square
#2E114A #4A1111 #2D4A11 #11494A
split-complementary
#2E114A #494A11 #114A11
monochromatic
#0F0619 #0F0619 #2E114A #4D1C7C #6C28AE

Accessibility & contrast

On white

16.21
#2E114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E114A
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E114A#FFFFFF#000000##FFFFFF
##2E114A1.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#281E2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e114a;
/* rgb */ color: rgb(46, 17, 74);
/* oklch */ color: oklch(25.7% 0.101 303.2);
Tailwind
colors: {
  custom: {
    50: '#6a527d',
    500: '#2e114a',
    950: '#000000',
  },
}
SCSS
$custom: #2e114a;
$custom-light: #6a527d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e114a",
  "rgb": {
    "r": 46,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 270.526,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25737,
    "c": 0.1007,
    "h": 303.2
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#2E114A
secondary
#5B8333
accent
#E64292
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #2E114A

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

Preview Lab → · Contrast checker → · Palette generator →

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