#2D169D#2D169D

#2D169D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.196 H 277.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2D169D
RGBrgb(45, 22, 157)
HSLhsl(250, 75%, 35%)
HSVhsv(250, 86%, 62%)
CMYKcmyk(71.3%, 86%, 0%, 38.4%)
CIE-LABlab(22.18, 49.44, -67.41)
CIE-LCHlch(22.18, 83.60, 306.26°)
OKLaboklab(35.16% 0.0239 -0.1947)
OKLCHoklch(35.16% 0.196 277)
XYZxyz(7.4529, 3.5653, 32.1872)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D169D #869D16
analogous
#16439D #2D169D #70169D
triadic
#2D169D #9D2D16 #169D2D
tetradic
#2D169D #9D1643 #869D16 #169D70
square
#2D169D #9D1643 #869D16 #169D70
split-complementary
#2D169D #9D7016 #439D16
monochromatic
#0E0732 #1E0E67 #2D169D #3C1ED3 #6348E5

Accessibility & contrast

On white

12.26
#2D169D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D169D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D169D
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D169D#FFFFFF#000000##FFFFFF
##2D169D1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002F9B
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d169d;
/* rgb */ color: rgb(45, 22, 157);
/* oklch */ color: oklch(35.2% 0.196 277.0);
Tailwind
colors: {
  custom: {
    50: '#795abb',
    500: '#2d169d',
    950: '#000000',
  },
}
SCSS
$custom: #2d169d;
$custom-light: #795abb;
$custom-dark: #000000;
JSON
{
  "hex": "#2d169d",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 157
  },
  "hsl": {
    "h": 250.222,
    "s": 75.419,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35156,
    "c": 0.19618,
    "h": 277
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#2D169D
secondary
#B1C748
accent
#F236D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2D169D

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

Preview Lab → · Contrast checker → · Palette generator →

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