#2D176E#2D176E

#2D176E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.139 H 286.1°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#2D176E
RGBrgb(45, 23, 110)
HSLhsl(255, 65%, 26%)
HSVhsv(255, 79%, 43%)
CMYKcmyk(59.1%, 79.1%, 0%, 56.9%)
CIE-LABlab(16.97, 34.69, -46.38)
CIE-LCHlch(16.97, 57.92, 306.79°)
OKLaboklab(29.97% 0.0386 -0.1335)
OKLCHoklch(29.97% 0.139 286.1)
XYZxyz(4.2022, 2.2962, 14.9706)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D176E #586E17
analogous
#172C6E #2D176E #58176E
triadic
#2D176E #6E2D17 #176E2D
tetradic
#2D176E #6E172C #586E17 #176E58
square
#2D176E #6E172C #586E17 #176E58
split-complementary
#2D176E #6E5817 #2C6E17
monochromatic
#0A0519 #180C3B #2D176E #4222A1 #572CD3

Accessibility & contrast

On white

14.39
#2D176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2D176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D176E
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D176E#FFFFFF#000000##FFFFFF
##2D176E1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#0E2F41
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2d176e;
/* rgb */ color: rgb(45, 23, 110);
/* oklch */ color: oklch(30.0% 0.139 286.1);
Tailwind
colors: {
  custom: {
    50: '#6f5798',
    500: '#2d176e',
    950: '#000000',
  },
}
SCSS
$custom: #2d176e;
$custom-light: #6f5798;
$custom-dark: #000000;
JSON
{
  "hex": "#2d176e",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 255.172,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.2997,
    "c": 0.13897,
    "h": 286.1
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#2D176E
secondary
#8AA43D
accent
#E83FBE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D176E

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

Preview Lab → · Contrast checker → · Palette generator →

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