#2D166A#2D166A

#2D166A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.4% C 0.135 H 287.5°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2D166A
RGBrgb(45, 22, 106)
HSLhsl(256, 66%, 25%)
HSVhsv(256, 79%, 42%)
CMYKcmyk(57.5%, 79.2%, 0%, 58.4%)
CIE-LABlab(16.37, 33.97, -44.76)
CIE-LCHlch(16.37, 56.19, 307.20°)
OKLaboklab(29.42% 0.0405 -0.1288)
OKLCHoklch(29.42% 0.135 287.5)
XYZxyz(3.9698, 2.1721, 13.8430)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D166A #536A16
analogous
#16296A #2D166A #57166A
triadic
#2D166A #6A2D16 #166A2D
tetradic
#2D166A #6A1629 #536A16 #166A57
square
#2D166A #6A1629 #536A16 #166A57
split-complementary
#2D166A #6A5716 #296A16
monochromatic
#0B0519 #170B37 #2D166A #43219D #582BCF

Accessibility & contrast

On white

14.64
#2D166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2D166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D166A
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D166A#FFFFFF#000000##FFFFFF
##2D166A1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#132D3F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d166a;
/* rgb */ color: rgb(45, 22, 106);
/* oklch */ color: oklch(29.4% 0.135 287.5);
Tailwind
colors: {
  custom: {
    50: '#6e5695',
    500: '#2d166a',
    950: '#000000',
  },
}
SCSS
$custom: #2d166a;
$custom-light: #6e5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2d166a",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 256.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29419,
    "c": 0.135,
    "h": 287.5
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#2D166A
secondary
#85A03B
accent
#E93FBA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2D166A

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

Preview Lab → · Contrast checker → · Palette generator →

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