#2D174F#2D174F

#2D174F is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.098 H 297.5°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2D174F
RGBrgb(45, 23, 79)
HSLhsl(264, 55%, 20%)
HSVhsv(264, 71%, 31%)
CMYKcmyk(43%, 70.9%, 0%, 69%)
CIE-LABlab(14.03, 24.97, -30.51)
CIE-LCHlch(14.03, 39.42, 309.30°)
OKLaboklab(26.97% 0.0452 -0.0869)
OKLCHoklch(26.97% 0.098 297.5)
XYZxyz(2.7995, 1.7351, 7.5830)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D174F #394F17
analogous
#171D4F #2D174F #49174F
triadic
#2D174F #4F2D17 #174F2D
tetradic
#2D174F #4F171D #394F17 #174F49
square
#2D174F #4F171D #394F17 #174F49
split-complementary
#2D174F #4F4917 #1D4F17
monochromatic
#0D0718 #120920 #2D174F #48257E #6333AE

Accessibility & contrast

On white

15.59
#2D174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D174F
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D174F#FFFFFF#000000##FFFFFF
##2D174F1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#00234E
Tritanopia (blue-blind)
#252430
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d174f;
/* rgb */ color: rgb(45, 23, 79);
/* oklch */ color: oklch(27.0% 0.098 297.5);
Tailwind
colors: {
  custom: {
    50: '#695581',
    500: '#2d174f',
    950: '#000000',
  },
}
SCSS
$custom: #2d174f;
$custom-light: #695581;
$custom-dark: #000000;
JSON
{
  "hex": "#2d174f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 263.571,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.26971,
    "c": 0.09799,
    "h": 297.5
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#2D174F
secondary
#69863C
accent
#DE4AA4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2D174F

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

Preview Lab → · Contrast checker → · Palette generator →

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