#2D164E#2D164E

#2D164E is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.098 H 298.3°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2D164E
RGBrgb(45, 22, 78)
HSLhsl(265, 56%, 20%)
HSVhsv(265, 72%, 31%)
CMYKcmyk(42.3%, 71.8%, 0%, 69.4%)
CIE-LABlab(13.72, 25.28, -30.33)
CIE-LCHlch(13.72, 39.48, 309.82°)
OKLaboklab(26.72% 0.0466 -0.0864)
OKLCHoklch(26.72% 0.098 298.3)
XYZxyz(2.7439, 1.6817, 7.3863)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D164E #374E16
analogous
#161B4E #2D164E #49164E
triadic
#2D164E #4E2D16 #164E2D
tetradic
#2D164E #4E161B #374E16 #164E49
square
#2D164E #4E161B #374E16 #164E49
split-complementary
#2D164E #4E4916 #1B4E16
monochromatic
#0E0718 #11091E #2D164E #49237E #6431AD

Accessibility & contrast

On white

15.71
#2D164E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D164E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D164E
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D164E#FFFFFF#000000##FFFFFF
##2D164E1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#25232F
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d164e;
/* rgb */ color: rgb(45, 22, 78);
/* oklch */ color: oklch(26.7% 0.098 298.3);
Tailwind
colors: {
  custom: {
    50: '#695580',
    500: '#2d164e',
    950: '#000000',
  },
}
SCSS
$custom: #2d164e;
$custom-light: #695580;
$custom-dark: #000000;
JSON
{
  "hex": "#2d164e",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 78
  },
  "hsl": {
    "h": 264.643,
    "s": 56,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2672,
    "c": 0.09818,
    "h": 298.3
  },
  "luminance": 0.01682
}

Semantic roles & 50–950 ramp

primary
#2D164E
secondary
#67853A
accent
#DF49A1
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D164E

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

Preview Lab → · Contrast checker → · Palette generator →

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