#2D175A#2D175A

#2D175A is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.113 H 292.6°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#2D175A
RGBrgb(45, 23, 90)
HSLhsl(260, 59%, 22%)
HSVhsv(260, 74%, 35%)
CMYKcmyk(50%, 74.4%, 0%, 64.7%)
CIE-LABlab(15.00, 28.39, -36.39)
CIE-LCHlch(15.00, 46.15, 307.96°)
OKLaboklab(27.97% 0.0435 -0.1042)
OKLCHoklch(27.97% 0.113 292.6)
XYZxyz(3.2335, 1.9088, 9.8689)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D175A #445A17
analogous
#17235A #2D175A #4E175A
triadic
#2D175A #5A2D17 #175A2D
tetradic
#2D175A #5A1723 #445A17 #175A4E
square
#2D175A #5A1723 #445A17 #175A4E
split-complementary
#2D175A #5A4E17 #235A17
monochromatic
#0C0618 #150B29 #2D175A #45238B #5E30BB

Accessibility & contrast

On white

15.20
#2D175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D175A
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D175A#FFFFFF#000000##FFFFFF
##2D175A1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002459
Tritanopia (blue-blind)
#1F2836
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d175a;
/* rgb */ color: rgb(45, 23, 90);
/* oklch */ color: oklch(28.0% 0.113 292.6);
Tailwind
colors: {
  custom: {
    50: '#6b5689',
    500: '#2d175a',
    950: '#000000',
  },
}
SCSS
$custom: #2d175a;
$custom-light: #6b5689;
$custom-dark: #000000;
JSON
{
  "hex": "#2d175a",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 259.701,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27971,
    "c": 0.11293,
    "h": 292.6
  },
  "luminance": 0.01909
}

Semantic roles & 50–950 ramp

primary
#2D175A
secondary
#75913C
accent
#E245AF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D175A

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

Preview Lab → · Contrast checker → · Palette generator →

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