#2E165F#2E165F

#2E165F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.121 H 291.9°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#2E165F
RGBrgb(46, 22, 95)
HSLhsl(260, 62%, 23%)
HSVhsv(260, 77%, 37%)
CMYKcmyk(51.6%, 76.8%, 0%, 62.7%)
CIE-LABlab(15.39, 30.72, -39.10)
CIE-LCHlch(15.39, 49.73, 308.16°)
OKLaboklab(28.42% 0.0451 -0.1121)
OKLCHoklch(28.42% 0.121 291.9)
XYZxyz(3.4786, 1.9808, 11.0233)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E165F #475F16
analogous
#16225F #2E165F #52165F
triadic
#2E165F #5F2E16 #165F2E
tetradic
#2E165F #5F1622 #475F16 #165F52
square
#2E165F #5F1622 #475F16 #165F52
split-complementary
#2E165F #5F5216 #225F16
monochromatic
#0C0619 #160A2D #2E165F #462291 #5E2DC2

Accessibility & contrast

On white

15.04
#2E165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2E165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E165F
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E165F#FFFFFF#000000##FFFFFF
##2E165F1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#1E2939
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e165f;
/* rgb */ color: rgb(46, 22, 95);
/* oklch */ color: oklch(28.4% 0.121 291.9);
Tailwind
colors: {
  custom: {
    50: '#6c568d',
    500: '#2e165f',
    950: '#000000',
  },
}
SCSS
$custom: #2e165f;
$custom-light: #6c568d;
$custom-dark: #000000;
JSON
{
  "hex": "#2e165f",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 259.726,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2842,
    "c": 0.12087,
    "h": 291.9
  },
  "luminance": 0.01981
}

Semantic roles & 50–950 ramp

primary
#2E165F
secondary
#78963B
accent
#E542B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E165F

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

Preview Lab → · Contrast checker → · Palette generator →

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