#2D173E#2D173E

#2D173E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.074 H 308.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#2D173E
RGBrgb(45, 23, 62)
HSLhsl(274, 46%, 17%)
HSVhsv(274, 63%, 24%)
CMYKcmyk(27.4%, 62.9%, 0%, 75.7%)
CIE-LABlab(12.73, 19.92, -20.78)
CIE-LCHlch(12.73, 28.79, 313.78°)
OKLaboklab(25.6% 0.0457 -0.0584)
OKLCHoklch(25.6% 0.074 308.1)
XYZxyz(2.2579, 1.5185, 4.7306)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D173E #283E17
analogous
#1A173E #2D173E #3E173C
triadic
#2D173E #3E2D17 #173E2D
tetradic
#2D173E #3E1A17 #283E17 #173C3E
square
#2D173E #3E1A17 #283E17 #173C3E
split-complementary
#2D173E #3C3E17 #173E1A
monochromatic
#100816 #100816 #2D173E #4D286B #6E3897

Accessibility & contrast

On white

16.11
#2D173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2D173E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D173E
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D173E#FFFFFF#000000##FFFFFF
##2D173E1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A203F
Deuteranopia (green-blind)
#12213D
Tritanopia (blue-blind)
#2B1E27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2d173e;
/* rgb */ color: rgb(45, 23, 62);
/* oklch */ color: oklch(25.6% 0.074 308.1);
Tailwind
colors: {
  custom: {
    50: '#675573',
    500: '#2d173e',
    950: '#000000',
  },
}
SCSS
$custom: #2d173e;
$custom-light: #675573;
$custom-dark: #000000;
JSON
{
  "hex": "#2d173e",
  "rgb": {
    "r": 45,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 273.846,
    "s": 45.882,
    "l": 16.667
  },
  "oklch": {
    "l": 0.25602,
    "c": 0.07417,
    "h": 308.1
  },
  "luminance": 0.01518
}

Semantic roles & 50–950 ramp

primary
#2D173E
secondary
#55753C
accent
#D6528B
background
#F6F4F7
surface
#EBE8ED
border
#C6C4C8
text
#060308
muted
#7A787B

Preview Lab

Preview with #2D173E

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

Preview Lab → · Contrast checker → · Palette generator →

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