#2D1175#2D1175

#2D1175 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.0% C 0.153 H 285.3°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#2D1175
RGBrgb(45, 17, 117)
HSLhsl(257, 75%, 26%)
HSVhsv(257, 85%, 46%)
CMYKcmyk(61.5%, 85.5%, 0%, 54.1%)
CIE-LABlab(16.71, 39.77, -51.34)
CIE-LCHlch(16.71, 64.94, 307.77°)
OKLaboklab(30.02% 0.0404 -0.1479)
OKLCHoklch(30.02% 0.153 285.3)
XYZxyz(4.4925, 2.2429, 17.0224)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1175 #597511
analogous
#112775 #2D1175 #5F1175
triadic
#2D1175 #752D11 #11752D
tetradic
#2D1175 #751127 #597511 #11755F
square
#2D1175 #751127 #597511 #11755F
split-complementary
#2D1175 #755F11 #277511
monochromatic
#0A041B #180940 #2D1175 #4219AA #5722DF

Accessibility & contrast

On white

14.50
#2D1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2D1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1175
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1175#FFFFFF#000000##FFFFFF
##2D11751.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002673
Tritanopia (blue-blind)
#023044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2d1175;
/* rgb */ color: rgb(45, 17, 117);
/* oklch */ color: oklch(30.0% 0.153 285.3);
Tailwind
colors: {
  custom: {
    50: '#70549e',
    500: '#2d1175',
    950: '#000000',
  },
}
SCSS
$custom: #2d1175;
$custom-light: #70549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1175",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 256.8,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3002,
    "c": 0.15335,
    "h": 285.3
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#2D1175
secondary
#8BAC36
accent
#F137BD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1175

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

Preview Lab → · Contrast checker → · Palette generator →

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