#2D164D#2D164D

#2D164D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.6% C 0.097 H 298.9°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2D164D
RGBrgb(45, 22, 77)
HSLhsl(265, 56%, 19%)
HSVhsv(265, 71%, 30%)
CMYKcmyk(41.6%, 71.4%, 0%, 69.8%)
CIE-LABlab(13.64, 24.98, -29.78)
CIE-LCHlch(13.64, 38.87, 309.99°)
OKLaboklab(26.63% 0.0467 -0.0848)
OKLCHoklch(26.63% 0.097 298.9)
XYZxyz(2.7083, 1.6675, 7.1989)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D164D #364D16
analogous
#161B4D #2D164D #49164D
triadic
#2D164D #4D2D16 #164D2D
tetradic
#2D164D #4D161B #364D16 #164D49
square
#2D164D #4D161B #364D16 #164D49
split-complementary
#2D164D #4D4916 #1B4D16
monochromatic
#0E0718 #11081D #2D164D #49247D #6531AC

Accessibility & contrast

On white

15.75
#2D164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2D164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D164D
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D164D#FFFFFF#000000##FFFFFF
##2D164D1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#00224C
Tritanopia (blue-blind)
#26222F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d164d;
/* rgb */ color: rgb(45, 22, 77);
/* oklch */ color: oklch(26.6% 0.097 298.9);
Tailwind
colors: {
  custom: {
    50: '#69557f',
    500: '#2d164d',
    950: '#000000',
  },
}
SCSS
$custom: #2d164d;
$custom-light: #69557f;
$custom-dark: #000000;
JSON
{
  "hex": "#2d164d",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 265.091,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.26632,
    "c": 0.09682,
    "h": 298.9
  },
  "luminance": 0.01668
}

Semantic roles & 50–950 ramp

primary
#2D164D
secondary
#65853A
accent
#DF49A0
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D164D

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

Preview Lab → · Contrast checker → · Palette generator →

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