#2D177E#2D177E

#2D177E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.159 H 282.2°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#2D177E
RGBrgb(45, 23, 126)
HSLhsl(253, 69%, 29%)
HSVhsv(253, 82%, 49%)
CMYKcmyk(64.3%, 81.7%, 0%, 50.6%)
CIE-LABlab(18.70, 39.68, -53.82)
CIE-LCHlch(18.70, 66.87, 306.40°)
OKLaboklab(31.7% 0.0337 -0.1553)
OKLCHoklch(31.7% 0.159 282.2)
XYZxyz(5.1533, 2.6767, 19.9797)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D177E #687E17
analogous
#17347E #2D177E #61177E
triadic
#2D177E #7E2D17 #177E2D
tetradic
#2D177E #7E1734 #687E17 #177E61
square
#2D177E #7E1734 #687E17 #177E61
split-complementary
#2D177E #7E6117 #347E17
monochromatic
#09051A #1B0E4A #2D177E #3F20B2 #5835DA

Accessibility & contrast

On white

13.68
#2D177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D177E
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D177E#FFFFFF#000000##FFFFFF
##2D177E1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2d177e;
/* rgb */ color: rgb(45, 23, 126);
/* oklch */ color: oklch(31.7% 0.159 282.2);
Tailwind
colors: {
  custom: {
    50: '#7258a4',
    500: '#2d177e',
    950: '#000000',
  },
}
SCSS
$custom: #2d177e;
$custom-light: #7258a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d177e",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 252.816,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31696,
    "c": 0.15887,
    "h": 282.2
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#2D177E
secondary
#9AB33E
accent
#EC3CC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2D177E

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

Preview Lab → · Contrast checker → · Palette generator →

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