#2D166C#2D166C

#2D166C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.138 H 286.9°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2D166C
RGBrgb(45, 22, 108)
HSLhsl(256, 66%, 25%)
HSVhsv(256, 80%, 42%)
CMYKcmyk(58.3%, 79.6%, 0%, 57.6%)
CIE-LABlab(16.57, 34.60, -45.73)
CIE-LCHlch(16.57, 57.34, 307.11°)
OKLaboklab(29.63% 0.0399 -0.1316)
OKLCHoklch(29.63% 0.138 286.9)
XYZxyz(4.0751, 2.2142, 14.3971)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D166C #556C16
analogous
#162A6C #2D166C #58166C
triadic
#2D166C #6C2D16 #166C2D
tetradic
#2D166C #6C162A #556C16 #166C58
square
#2D166C #6C162A #556C16 #166C58
split-complementary
#2D166C #6C5816 #2A6C16
monochromatic
#0B0519 #180C39 #2D166C #42209F #572BD2

Accessibility & contrast

On white

14.56
#2D166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D166C
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D166C#FFFFFF#000000##FFFFFF
##2D166C1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00276A
Tritanopia (blue-blind)
#112E40
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d166c;
/* rgb */ color: rgb(45, 22, 108);
/* oklch */ color: oklch(29.6% 0.138 286.9);
Tailwind
colors: {
  custom: {
    50: '#6e5697',
    500: '#2d166c',
    950: '#000000',
  },
}
SCSS
$custom: #2d166c;
$custom-light: #6e5697;
$custom-dark: #000000;
JSON
{
  "hex": "#2d166c",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 256.047,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29628,
    "c": 0.13753,
    "h": 286.9
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#2D166C
secondary
#87A23C
accent
#E93FBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D166C

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

Preview Lab → · Contrast checker → · Palette generator →

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