#2E104B#2E104B

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

Color values

HEX#2E104B
RGBrgb(46, 16, 75)
HSLhsl(271, 65%, 18%)
HSVhsv(271, 79%, 29%)
CMYKcmyk(38.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(12.35, 28.11, -30.48)
CIE-LCHlch(12.35, 41.46, 312.69°)
OKLaboklab(25.69% 0.0562 -0.0868)
OKLCHoklch(25.69% 0.103 302.9)
XYZxyz(2.5817, 1.4594, 6.8009)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E104B #2D4B10
analogous
#10104B #2E104B #4B104A
triadic
#2E104B #4B2E10 #104B2E
tetradic
#2E104B #4B1010 #2D4B10 #104A4B
square
#2E104B #4B1010 #2D4B10 #104A4B
split-complementary
#2E104B #4A4B10 #104B10
monochromatic
#0F0519 #0F0519 #2E104B #4D1B7D #6C26B0

Accessibility & contrast

On white

16.26
#2E104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E104B
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E104B#FFFFFF#000000##FFFFFF
##2E104B1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e104b;
/* rgb */ color: rgb(46, 16, 75);
/* oklch */ color: oklch(25.7% 0.103 302.9);
Tailwind
colors: {
  custom: {
    50: '#6a517e',
    500: '#2e104b',
    950: '#000000',
  },
}
SCSS
$custom: #2e104b;
$custom-light: #6a517e;
$custom-dark: #000000;
JSON
{
  "hex": "#2e104b",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 270.508,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25688,
    "c": 0.10338,
    "h": 302.9
  },
  "luminance": 0.01459
}

Semantic roles & 50–950 ramp

primary
#2E104B
secondary
#5B8532
accent
#E84092
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E104B

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

Preview Lab → · Contrast checker → · Palette generator →

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