#2D166D#2D166D

#2D166D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.139 H 286.6°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#2D166D
RGBrgb(45, 22, 109)
HSLhsl(256, 66%, 26%)
HSVhsv(256, 80%, 43%)
CMYKcmyk(58.7%, 79.8%, 0%, 57.3%)
CIE-LABlab(16.68, 34.91, -46.21)
CIE-LCHlch(16.68, 57.91, 307.07°)
OKLaboklab(29.73% 0.0396 -0.133)
OKLCHoklch(29.73% 0.139 286.6)
XYZxyz(4.1286, 2.2356, 14.6790)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D166D #566D16
analogous
#162A6D #2D166D #58166D
triadic
#2D166D #6D2D16 #166D2D
tetradic
#2D166D #6D162A #566D16 #166D58
square
#2D166D #6D162A #566D16 #166D58
split-complementary
#2D166D #6D5816 #2A6D16
monochromatic
#0B0519 #180C3A #2D166D #4220A0 #572BD3

Accessibility & contrast

On white

14.51
#2D166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D166D
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D166D#FFFFFF#000000##FFFFFF
##2D166D1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6F
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#102F41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d166d;
/* rgb */ color: rgb(45, 22, 109);
/* oklch */ color: oklch(29.7% 0.139 286.6);
Tailwind
colors: {
  custom: {
    50: '#6e5698',
    500: '#2d166d',
    950: '#000000',
  },
}
SCSS
$custom: #2d166d;
$custom-light: #6e5698;
$custom-dark: #000000;
JSON
{
  "hex": "#2d166d",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 255.862,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29733,
    "c": 0.1388,
    "h": 286.6
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#2D166D
secondary
#88A33C
accent
#E93EBC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D166D

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

Preview Lab → · Contrast checker → · Palette generator →

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