#2D164C#2D164C

#2D164C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.5% C 0.095 H 299.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2D164C
RGBrgb(45, 22, 76)
HSLhsl(266, 55%, 19%)
HSVhsv(266, 71%, 30%)
CMYKcmyk(40.8%, 71.1%, 0%, 70.2%)
CIE-LABlab(13.55, 24.68, -29.22)
CIE-LCHlch(13.55, 38.25, 310.18°)
OKLaboklab(26.55% 0.0469 -0.0832)
OKLCHoklch(26.55% 0.095 299.4)
XYZxyz(2.6733, 1.6535, 7.0144)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D164C #354C16
analogous
#161A4C #2D164C #48164C
triadic
#2D164C #4C2D16 #164C2D
tetradic
#2D164C #4C161A #354C16 #164C48
square
#2D164C #4C161A #354C16 #164C48
split-complementary
#2D164C #4C4816 #1A4C16
monochromatic
#0E0718 #11081D #2D164C #49247B #6531AB

Accessibility & contrast

On white

15.78
#2D164C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D164C
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D164C#FFFFFF#000000##FFFFFF
##2D164C1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d164c;
/* rgb */ color: rgb(45, 22, 76);
/* oklch */ color: oklch(26.5% 0.095 299.4);
Tailwind
colors: {
  custom: {
    50: '#69557e',
    500: '#2d164c',
    950: '#000000',
  },
}
SCSS
$custom: #2d164c;
$custom-light: #69557e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d164c",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 76
  },
  "hsl": {
    "h": 265.556,
    "s": 55.102,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26546,
    "c": 0.09545,
    "h": 299.4
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#2D164C
secondary
#64843A
accent
#DE499F
background
#F6F4F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D164C

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

Preview Lab → · Contrast checker → · Palette generator →

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