#2D177F#2D177F

#2D177F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.160 H 282.0°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2D177F
RGBrgb(45, 23, 127)
HSLhsl(253, 69%, 29%)
HSVhsv(253, 82%, 50%)
CMYKcmyk(64.6%, 81.9%, 0%, 50.2%)
CIE-LABlab(18.81, 39.99, -54.28)
CIE-LCHlch(18.81, 67.41, 306.38°)
OKLaboklab(31.81% 0.0334 -0.1566)
OKLCHoklch(31.81% 0.16 282)
XYZxyz(5.2182, 2.7026, 20.3212)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D177F #697F17
analogous
#17357F #2D177F #61177F
triadic
#2D177F #7F2D17 #177F2D
tetradic
#2D177F #7F1735 #697F17 #177F61
square
#2D177F #7F1735 #697F17 #177F61
split-complementary
#2D177F #7F6117 #357F17
monochromatic
#09051A #1B0E4B #2D177F #3F20B3 #5936DB

Accessibility & contrast

On white

13.63
#2D177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2D177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D177F
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D177F#FFFFFF#000000##FFFFFF
##2D177F1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2d177f;
/* rgb */ color: rgb(45, 23, 127);
/* oklch */ color: oklch(31.8% 0.160 282.0);
Tailwind
colors: {
  custom: {
    50: '#7258a5',
    500: '#2d177f',
    950: '#000000',
  },
}
SCSS
$custom: #2d177f;
$custom-light: #7258a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2d177f",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 252.692,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31807,
    "c": 0.16009,
    "h": 282
  },
  "luminance": 0.02703
}

Semantic roles & 50–950 ramp

primary
#2D177F
secondary
#9BB43E
accent
#EC3CC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D177F

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

Preview Lab → · Contrast checker → · Palette generator →

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