#2D168C#2D168C

#2D168C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.176 H 279.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#2D168C
RGBrgb(45, 22, 140)
HSLhsl(252, 73%, 32%)
HSVhsv(252, 84%, 55%)
CMYKcmyk(67.9%, 84.3%, 0%, 45.1%)
CIE-LABlab(20.14, 44.41, -60.26)
CIE-LCHlch(20.14, 74.86, 306.39°)
OKLaboklab(33.17% 0.0296 -0.174)
OKLCHoklch(33.17% 0.176 279.7)
XYZxyz(6.1012, 3.0247, 25.0682)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D168C #758C16
analogous
#163A8C #2D168C #68168C
triadic
#2D168C #8C2D16 #168C2D
tetradic
#2D168C #8C163A #758C16 #168C68
square
#2D168C #8C163A #758C16 #168C68
split-complementary
#2D168C #8C6816 #3A8C16
monochromatic
#0B0522 #1C0E57 #2D168C #3E1EC1 #5C3CE0

Accessibility & contrast

On white

13.08
#2D168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2D168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D168C
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D168C#FFFFFF#000000##FFFFFF
##2D168C1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2d168c;
/* rgb */ color: rgb(45, 22, 140);
/* oklch */ color: oklch(33.2% 0.176 279.7);
Tailwind
colors: {
  custom: {
    50: '#7558af',
    500: '#2d168c',
    950: '#000000',
  },
}
SCSS
$custom: #2d168c;
$custom-light: #7558af;
$custom-dark: #000000;
JSON
{
  "hex": "#2d168c",
  "rgb": {
    "r": 45,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 251.695,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33168,
    "c": 0.17649,
    "h": 279.7
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#2D168C
secondary
#A6C03E
accent
#F038CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2D168C

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

Preview Lab → · Contrast checker → · Palette generator →

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