#2E104C#2E104C

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

Color values

HEX#2E104C
RGBrgb(46, 16, 76)
HSLhsl(270, 65%, 18%)
HSVhsv(270, 79%, 30%)
CMYKcmyk(39.5%, 78.9%, 0%, 70.2%)
CIE-LABlab(12.44, 28.39, -31.03)
CIE-LCHlch(12.44, 42.06, 312.47°)
OKLaboklab(25.78% 0.056 -0.0884)
OKLCHoklch(25.78% 0.105 302.3)
XYZxyz(2.6162, 1.4732, 6.9826)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E104C #2E4C10
analogous
#10104C #2E104C #4C104C
triadic
#2E104C #4C2E10 #104C2E
tetradic
#2E104C #4C1010 #2E4C10 #104C4C
square
#2E104C #4C1010 #2E4C10 #104C4C
split-complementary
#2E104C #4C4C10 #104C10
monochromatic
#0F0519 #0F0519 #2E104C #4D1B7F #6B25B1

Accessibility & contrast

On white

16.22
#2E104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E104C
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E104C#FFFFFF#000000##FFFFFF
##2E104C1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#281F2C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e104c;
/* rgb */ color: rgb(46, 16, 76);
/* oklch */ color: oklch(25.8% 0.105 302.3);
Tailwind
colors: {
  custom: {
    50: '#6a517f',
    500: '#2e104c',
    950: '#000000',
  },
}
SCSS
$custom: #2e104c;
$custom-light: #6a517f;
$custom-dark: #000000;
JSON
{
  "hex": "#2e104c",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 270,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25779,
    "c": 0.10463,
    "h": 302.3
  },
  "luminance": 0.01473
}

Semantic roles & 50–950 ramp

primary
#2E104C
secondary
#5C8632
accent
#E84094
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E104C

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

Preview Lab → · Contrast checker → · Palette generator →

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