#2E104F#2E104F

#2E104F is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.108 H 300.7°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2E104F
RGBrgb(46, 16, 79)
HSLhsl(269, 66%, 19%)
HSVhsv(269, 80%, 31%)
CMYKcmyk(41.8%, 79.7%, 0%, 69%)
CIE-LABlab(12.71, 29.25, -32.65)
CIE-LCHlch(12.71, 43.83, 311.85°)
OKLaboklab(26.06% 0.0553 -0.0932)
OKLCHoklch(26.06% 0.108 300.7)
XYZxyz(2.7229, 1.5159, 7.5448)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E104F #314F10
analogous
#10114F #2E104F #4D104F
triadic
#2E104F #4F2E10 #104F2E
tetradic
#2E104F #4F1011 #314F10 #104F4D
square
#2E104F #4F1011 #314F10 #104F4D
split-complementary
#2E104F #4F4D10 #114F10
monochromatic
#0F0519 #10061C #2E104F #4C1A82 #6925B5

Accessibility & contrast

On white

16.11
#2E104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E104F
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E104F#FFFFFF#000000##FFFFFF
##2E104F1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002151
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#27202E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2e104f;
/* rgb */ color: rgb(46, 16, 79);
/* oklch */ color: oklch(26.1% 0.108 300.7);
Tailwind
colors: {
  custom: {
    50: '#6b5181',
    500: '#2e104f',
    950: '#000000',
  },
}
SCSS
$custom: #2e104f;
$custom-light: #6b5181;
$custom-dark: #000000;
JSON
{
  "hex": "#2e104f",
  "rgb": {
    "r": 46,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 268.571,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26057,
    "c": 0.10834,
    "h": 300.7
  },
  "luminance": 0.01516
}

Semantic roles & 50–950 ramp

primary
#2E104F
secondary
#5F8932
accent
#E93F98
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2E104F

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

Preview Lab → · Contrast checker → · Palette generator →

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