#2D165B#2D165B

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

Color values

HEX#2D165B
RGBrgb(45, 22, 91)
HSLhsl(260, 61%, 22%)
HSVhsv(260, 76%, 36%)
CMYKcmyk(50.5%, 75.8%, 0%, 64.3%)
CIE-LABlab(14.88, 29.29, -37.25)
CIE-LCHlch(14.88, 47.39, 308.17°)
OKLaboklab(27.92% 0.0444 -0.1068)
OKLCHoklch(27.92% 0.116 292.6)
XYZxyz(3.2569, 1.8869, 10.0881)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D165B #445B16
analogous
#16225B #2D165B #50165B
triadic
#2D165B #5B2D16 #165B2D
tetradic
#2D165B #5B1622 #445B16 #165B50
square
#2D165B #5B1622 #445B16 #165B50
split-complementary
#2D165B #5B5016 #225B16
monochromatic
#0C0619 #150A2A #2D165B #45228C #5E2EBE

Accessibility & contrast

On white

15.25
#2D165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D165B
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D165B#FFFFFF#000000##FFFFFF
##2D165B1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#1F2836
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d165b;
/* rgb */ color: rgb(45, 22, 91);
/* oklch */ color: oklch(27.9% 0.116 292.6);
Tailwind
colors: {
  custom: {
    50: '#6b558a',
    500: '#2d165b',
    950: '#000000',
  },
}
SCSS
$custom: #2d165b;
$custom-light: #6b558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d165b",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 260,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27916,
    "c": 0.11561,
    "h": 292.6
  },
  "luminance": 0.01887
}

Semantic roles & 50–950 ramp

primary
#2D165B
secondary
#75923B
accent
#E444AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D165B

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

Preview Lab → · Contrast checker → · Palette generator →

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