#2E104A#2E104A

#2E104A is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.102 H 303.5°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#2E104A
RGBrgb(46, 16, 74)
HSLhsl(271, 64%, 18%)
HSVhsv(271, 78%, 29%)
CMYKcmyk(37.8%, 78.4%, 0%, 71%)
CIE-LABlab(12.26, 27.83, -29.93)
CIE-LCHlch(12.26, 40.87, 312.92°)
OKLaboklab(25.6% 0.0564 -0.0852)
OKLCHoklch(25.6% 0.102 303.5)
XYZxyz(2.5477, 1.4458, 6.6221)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E104A #2C4A10
analogous
#11104A #2E104A #4A1049
triadic
#2E104A #4A2E10 #104A2E
tetradic
#2E104A #4A1110 #2C4A10 #10494A
square
#2E104A #4A1110 #2C4A10 #10494A
split-complementary
#2E104A #494A10 #104A11
monochromatic
#100519 #100519 #2E104A #4D1B7C #6D26AF

Accessibility & contrast

On white

16.29
#2E104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E104A
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E104A#FFFFFF#000000##FFFFFF
##2E104A1.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#281E2B
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e104a;
/* rgb */ color: rgb(46, 16, 74);
/* oklch */ color: oklch(25.6% 0.102 303.5);
Tailwind
colors: {
  custom: {
    50: '#6a517d',
    500: '#2e104a',
    950: '#000000',
  },
}
SCSS
$custom: #2e104a;
$custom-light: #6a517d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e104a",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 271.034,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25597,
    "c": 0.10214,
    "h": 303.5
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#2E104A
secondary
#598432
accent
#E74091
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E104A

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

Preview Lab → · Contrast checker → · Palette generator →

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