#2D175B#2D175B

#2D175B is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.1% C 0.114 H 292.3°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#2D175B
RGBrgb(45, 23, 91)
HSLhsl(259, 60%, 22%)
HSVhsv(259, 75%, 36%)
CMYKcmyk(50.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(15.09, 28.70, -36.91)
CIE-LCHlch(15.09, 46.76, 307.87°)
OKLaboklab(28.07% 0.0433 -0.1058)
OKLCHoklch(28.07% 0.114 292.3)
XYZxyz(3.2764, 1.9259, 10.0946)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D175B #455B17
analogous
#17235B #2D175B #4F175B
triadic
#2D175B #5B2D17 #175B2D
tetradic
#2D175B #5B1723 #455B17 #175B4F
square
#2D175B #5B1723 #455B17 #175B4F
split-complementary
#2D175B #5B4F17 #235B17
monochromatic
#0C0618 #150B2A #2D175B #45238C #5D30BD

Accessibility & contrast

On white

15.16
#2D175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D175B
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D175B#FFFFFF#000000##FFFFFF
##2D175B1.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#1F2837
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d175b;
/* rgb */ color: rgb(45, 23, 91);
/* oklch */ color: oklch(28.1% 0.114 292.3);
Tailwind
colors: {
  custom: {
    50: '#6b568a',
    500: '#2d175b',
    950: '#000000',
  },
}
SCSS
$custom: #2d175b;
$custom-light: #6b568a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d175b",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 259.412,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28066,
    "c": 0.11427,
    "h": 292.3
  },
  "luminance": 0.01926
}

Semantic roles & 50–950 ramp

primary
#2D175B
secondary
#76923C
accent
#E345B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D175B

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

Preview Lab → · Contrast checker → · Palette generator →

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