#2E165B#2E165B

#2E165B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.116 H 293.4°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2E165B
RGBrgb(46, 22, 91)
HSLhsl(261, 61%, 22%)
HSVhsv(261, 76%, 36%)
CMYKcmyk(49.5%, 75.8%, 0%, 64.3%)
CIE-LABlab(15.01, 29.49, -37.05)
CIE-LCHlch(15.01, 47.35, 308.52°)
OKLaboklab(28.03% 0.046 -0.1061)
OKLCHoklch(28.03% 0.116 293.4)
XYZxyz(3.3014, 1.9099, 10.0902)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E165B #435B16
analogous
#16205B #2E165B #51165B
triadic
#2E165B #5B2E16 #165B2E
tetradic
#2E165B #5B1620 #435B16 #165B51
square
#2E165B #5B1620 #435B16 #165B51
split-complementary
#2E165B #5B5116 #205B16
monochromatic
#0C0619 #150A2A #2E165B #47228C #602EBE

Accessibility & contrast

On white

15.20
#2E165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2E165B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E165B
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E165B#FFFFFF#000000##FFFFFF
##2E165B1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#212836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e165b;
/* rgb */ color: rgb(46, 22, 91);
/* oklch */ color: oklch(28.0% 0.116 293.4);
Tailwind
colors: {
  custom: {
    50: '#6c558a',
    500: '#2e165b',
    950: '#000000',
  },
}
SCSS
$custom: #2e165b;
$custom-light: #6c558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e165b",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 260.87,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.28033,
    "c": 0.11565,
    "h": 293.4
  },
  "luminance": 0.0191
}

Semantic roles & 50–950 ramp

primary
#2E165B
secondary
#74923B
accent
#E444AC
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E165B

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

Preview Lab → · Contrast checker → · Palette generator →

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