#2E165E#2E165E

#2E165E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.120 H 292.3°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2E165E
RGBrgb(46, 22, 94)
HSLhsl(260, 62%, 23%)
HSVhsv(260, 77%, 37%)
CMYKcmyk(51.1%, 76.6%, 0%, 63.1%)
CIE-LABlab(15.29, 30.41, -38.59)
CIE-LCHlch(15.29, 49.13, 308.24°)
OKLaboklab(28.32% 0.0453 -0.1106)
OKLCHoklch(28.32% 0.12 292.3)
XYZxyz(3.4334, 1.9627, 10.7854)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E165E #465E16
analogous
#16225E #2E165E #52165E
triadic
#2E165E #5E2E16 #165E2E
tetradic
#2E165E #5E1622 #465E16 #165E52
square
#2E165E #5E1622 #465E16 #165E52
split-complementary
#2E165E #5E5216 #225E16
monochromatic
#0C0619 #160A2C #2E165E #462290 #5F2DC1

Accessibility & contrast

On white

15.08
#2E165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E165E
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E165E#FFFFFF#000000##FFFFFF
##2E165E1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#1F2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2e165e;
/* rgb */ color: rgb(46, 22, 94);
/* oklch */ color: oklch(28.3% 0.120 292.3);
Tailwind
colors: {
  custom: {
    50: '#6c558c',
    500: '#2e165e',
    950: '#000000',
  },
}
SCSS
$custom: #2e165e;
$custom-light: #6c558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2e165e",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 260,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28322,
    "c": 0.11957,
    "h": 292.3
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#2E165E
secondary
#77953B
accent
#E543AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2E165E

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

Preview Lab → · Contrast checker → · Palette generator →

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