#2E165D#2E165D

#2E165D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.2% C 0.118 H 292.7°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#2E165D
RGBrgb(46, 22, 93)
HSLhsl(260, 62%, 23%)
HSVhsv(260, 76%, 36%)
CMYKcmyk(50.5%, 76.3%, 0%, 63.5%)
CIE-LABlab(15.20, 30.10, -38.08)
CIE-LCHlch(15.20, 48.54, 308.33°)
OKLaboklab(28.23% 0.0456 -0.1091)
OKLCHoklch(28.23% 0.118 292.7)
XYZxyz(3.3889, 1.9449, 10.5506)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E165D #455D16
analogous
#16215D #2E165D #52165D
triadic
#2E165D #5D2E16 #165D2E
tetradic
#2E165D #5D1621 #455D16 #165D52
square
#2E165D #5D1621 #455D16 #165D52
split-complementary
#2E165D #5D5216 #215D16
monochromatic
#0C0619 #160A2C #2E165D #46228E #5F2DC0

Accessibility & contrast

On white

15.12
#2E165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2E165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E165D
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E165D#FFFFFF#000000##FFFFFF
##2E165D1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#202838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e165d;
/* rgb */ color: rgb(46, 22, 93);
/* oklch */ color: oklch(28.2% 0.118 292.7);
Tailwind
colors: {
  custom: {
    50: '#6c558c',
    500: '#2e165d',
    950: '#000000',
  },
}
SCSS
$custom: #2e165d;
$custom-light: #6c558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e165d",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 260.282,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28225,
    "c": 0.11826,
    "h": 292.7
  },
  "luminance": 0.01945
}

Semantic roles & 50–950 ramp

primary
#2E165D
secondary
#76943B
accent
#E543AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E165D

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

Preview Lab → · Contrast checker → · Palette generator →

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