#2D165D#2D165D

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

Color values

HEX#2D165D
RGBrgb(45, 22, 93)
HSLhsl(259, 62%, 23%)
HSVhsv(259, 76%, 36%)
CMYKcmyk(51.6%, 76.3%, 0%, 63.5%)
CIE-LABlab(15.07, 29.91, -38.28)
CIE-LCHlch(15.07, 48.58, 308.00°)
OKLaboklab(28.11% 0.0439 -0.1098)
OKLCHoklch(28.11% 0.118 291.8)
XYZxyz(3.3443, 1.9219, 10.5486)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D165D #465D16
analogous
#16225D #2D165D #51165D
triadic
#2D165D #5D2D16 #165D2D
tetradic
#2D165D #5D1622 #465D16 #165D51
square
#2D165D #5D1622 #465D16 #165D51
split-complementary
#2D165D #5D5116 #225D16
monochromatic
#0C0619 #150A2C #2D165D #45228E #5D2DC0

Accessibility & contrast

On white

15.17
#2D165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D165D
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D165D#FFFFFF#000000##FFFFFF
##2D165D1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1E2838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d165d;
/* rgb */ color: rgb(45, 22, 93);
/* oklch */ color: oklch(28.1% 0.118 291.8);
Tailwind
colors: {
  custom: {
    50: '#6c558c',
    500: '#2d165d',
    950: '#000000',
  },
}
SCSS
$custom: #2d165d;
$custom-light: #6c558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d165d",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 259.437,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28109,
    "c": 0.11824,
    "h": 291.8
  },
  "luminance": 0.01922
}

Semantic roles & 50–950 ramp

primary
#2D165D
secondary
#77943B
accent
#E543B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D165D

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

Preview Lab → · Contrast checker → · Palette generator →

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