#2D176F#2D176F

#2D176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.140 H 285.8°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#2D176F
RGBrgb(45, 23, 111)
HSLhsl(255, 66%, 26%)
HSVhsv(255, 79%, 44%)
CMYKcmyk(59.5%, 79.3%, 0%, 56.5%)
CIE-LABlab(17.08, 35.00, -46.86)
CIE-LCHlch(17.08, 58.49, 306.76°)
OKLaboklab(30.08% 0.0383 -0.1349)
OKLCHoklch(30.08% 0.14 285.8)
XYZxyz(4.2570, 2.3181, 15.2590)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D176F #596F17
analogous
#172D6F #2D176F #59176F
triadic
#2D176F #6F2D17 #176F2D
tetradic
#2D176F #6F172D #596F17 #176F59
square
#2D176F #6F172D #596F17 #176F59
split-complementary
#2D176F #6F5917 #2D6F17
monochromatic
#0A0519 #180C3C #2D176F #4222A2 #572DD3

Accessibility & contrast

On white

14.35
#2D176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D176F
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D176F#FFFFFF#000000##FFFFFF
##2D176F1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#0D3042
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d176f;
/* rgb */ color: rgb(45, 23, 111);
/* oklch */ color: oklch(30.1% 0.140 285.8);
Tailwind
colors: {
  custom: {
    50: '#6f5799',
    500: '#2d176f',
    950: '#000000',
  },
}
SCSS
$custom: #2d176f;
$custom-light: #6f5799;
$custom-dark: #000000;
JSON
{
  "hex": "#2d176f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 255,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30075,
    "c": 0.14024,
    "h": 285.8
  },
  "luminance": 0.02318
}

Semantic roles & 50–950 ramp

primary
#2D176F
secondary
#8BA53D
accent
#E93FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D176F

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

Preview Lab → · Contrast checker → · Palette generator →

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