#2D175F#2D175F

#2D175F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.120 H 290.8°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2D175F
RGBrgb(45, 23, 95)
HSLhsl(258, 61%, 23%)
HSVhsv(258, 76%, 37%)
CMYKcmyk(52.6%, 75.8%, 0%, 62.7%)
CIE-LABlab(15.47, 29.96, -38.97)
CIE-LCHlch(15.47, 49.15, 307.55°)
OKLaboklab(28.45% 0.0424 -0.1118)
OKLCHoklch(28.45% 0.12 290.8)
XYZxyz(3.4536, 1.9968, 11.0277)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D175F #495F17
analogous
#17255F #2D175F #51175F
triadic
#2D175F #5F2D17 #175F2D
tetradic
#2D175F #5F1725 #495F17 #175F51
square
#2D175F #5F1725 #495F17 #175F51
split-complementary
#2D175F #5F5117 #255F17
monochromatic
#0C0619 #160B2E #2D175F #442390 #5C2FC2

Accessibility & contrast

On white

15.01
#2D175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D175F
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D175F#FFFFFF#000000##FFFFFF
##2D175F1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#1C2A39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d175f;
/* rgb */ color: rgb(45, 23, 95);
/* oklch */ color: oklch(28.5% 0.120 290.8);
Tailwind
colors: {
  custom: {
    50: '#6c568d',
    500: '#2d175f',
    950: '#000000',
  },
}
SCSS
$custom: #2d175f;
$custom-light: #6c568d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d175f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 258.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28451,
    "c": 0.11958,
    "h": 290.8
  },
  "luminance": 0.01997
}

Semantic roles & 50–950 ramp

primary
#2D175F
secondary
#7A963C
accent
#E444B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D175F

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

Preview Lab → · Contrast checker → · Palette generator →

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