#2D1075#2D1075

#2D1075 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.154 H 285.4°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#2D1075
RGBrgb(45, 16, 117)
HSLhsl(257, 76%, 26%)
HSVhsv(257, 86%, 46%)
CMYKcmyk(61.5%, 86.3%, 0%, 54.1%)
CIE-LABlab(16.57, 40.21, -51.58)
CIE-LCHlch(16.57, 65.41, 307.94°)
OKLaboklab(29.92% 0.041 -0.1486)
OKLCHoklch(29.92% 0.154 285.4)
XYZxyz(4.4774, 2.2125, 17.0173)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D1075 #587510
analogous
#102575 #2D1075 #5F1075
triadic
#2D1075 #752D10 #10752D
tetradic
#2D1075 #751025 #587510 #10755F
square
#2D1075 #751025 #587510 #10755F
split-complementary
#2D1075 #755F10 #257510
monochromatic
#0A041B #18093F #2D1075 #4217AB #571FE0

Accessibility & contrast

On white

14.56
#2D1075 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2D1075 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D1075
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D1075#FFFFFF#000000##FFFFFF
##2D10751.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.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: #2d1075;
/* rgb */ color: rgb(45, 16, 117);
/* oklch */ color: oklch(29.9% 0.154 285.4);
Tailwind
colors: {
  custom: {
    50: '#71549e',
    500: '#2d1075',
    950: '#000000',
  },
}
SCSS
$custom: #2d1075;
$custom-light: #71549e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d1075",
  "rgb": {
    "r": 45,
    "g": 16,
    "b": 117
  },
  "hsl": {
    "h": 257.228,
    "s": 75.94,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29919,
    "c": 0.15417,
    "h": 285.4
  },
  "luminance": 0.02213
}

Semantic roles & 50–950 ramp

primary
#2D1075
secondary
#8AAC35
accent
#F335BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D1075

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

Preview Lab → · Contrast checker → · Palette generator →

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