#2D175D#2D175D

#2D175D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.117 H 291.5°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#2D175D
RGBrgb(45, 23, 93)
HSLhsl(259, 60%, 23%)
HSVhsv(259, 75%, 36%)
CMYKcmyk(51.6%, 75.3%, 0%, 63.5%)
CIE-LABlab(15.28, 29.33, -37.94)
CIE-LCHlch(15.28, 47.96, 307.70°)
OKLaboklab(28.26% 0.0429 -0.1088)
OKLCHoklch(28.26% 0.117 291.5)
XYZxyz(3.3638, 1.9609, 10.5551)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D175D #475D17
analogous
#17245D #2D175D #50175D
triadic
#2D175D #5D2D17 #175D2D
tetradic
#2D175D #5D1724 #475D17 #175D50
square
#2D175D #5D1724 #475D17 #175D50
split-complementary
#2D175D #5D5017 #245D17
monochromatic
#0C0619 #150B2C #2D175D #45238E #5C2FBF

Accessibility & contrast

On white

15.08
#2D175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D175D
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D175D#FFFFFF#000000##FFFFFF
##2D175D1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#1E2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d175d;
/* rgb */ color: rgb(45, 23, 93);
/* oklch */ color: oklch(28.3% 0.117 291.5);
Tailwind
colors: {
  custom: {
    50: '#6b568c',
    500: '#2d175d',
    950: '#000000',
  },
}
SCSS
$custom: #2d175d;
$custom-light: #6b568c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d175d",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 258.857,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28258,
    "c": 0.11693,
    "h": 291.5
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#2D175D
secondary
#78943C
accent
#E344B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D175D

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

Preview Lab → · Contrast checker → · Palette generator →

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