#2D164F#2D164F

#2D164F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.100 H 297.8°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2D164F
RGBrgb(45, 22, 79)
HSLhsl(264, 56%, 20%)
HSVhsv(264, 72%, 31%)
CMYKcmyk(43%, 72.2%, 0%, 69%)
CIE-LABlab(13.80, 25.59, -30.87)
CIE-LCHlch(13.80, 40.10, 309.65°)
OKLaboklab(26.81% 0.0465 -0.088)
OKLCHoklch(26.81% 0.1 297.8)
XYZxyz(2.7800, 1.6962, 7.5765)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D164F #384F16
analogous
#161B4F #2D164F #4A164F
triadic
#2D164F #4F2D16 #164F2D
tetradic
#2D164F #4F161B #384F16 #164F4A
square
#2D164F #4F161B #384F16 #164F4A
split-complementary
#2D164F #4F4A16 #1B4F16
monochromatic
#0E0718 #12091F #2D164F #48237F #6431AF

Accessibility & contrast

On white

15.68
#2D164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D164F
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D164F#FFFFFF#000000##FFFFFF
##2D164F1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#252330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d164f;
/* rgb */ color: rgb(45, 22, 79);
/* oklch */ color: oklch(26.8% 0.100 297.8);
Tailwind
colors: {
  custom: {
    50: '#695581',
    500: '#2d164f',
    950: '#000000',
  },
}
SCSS
$custom: #2d164f;
$custom-light: #695581;
$custom-dark: #000000;
JSON
{
  "hex": "#2d164f",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 264.211,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26808,
    "c": 0.09954,
    "h": 297.8
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#2D164F
secondary
#68863A
accent
#E048A3
background
#F6F5F7
surface
#EBE8EE
border
#C6C4C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2D164F

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

Preview Lab → · Contrast checker → · Palette generator →

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