#2D116F#2D116F

#2D116F is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.146 H 286.9°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#2D116F
RGBrgb(45, 17, 111)
HSLhsl(258, 73%, 25%)
HSVhsv(258, 85%, 44%)
CMYKcmyk(59.5%, 84.7%, 0%, 56.5%)
CIE-LABlab(16.04, 38.00, -48.57)
CIE-LCHlch(16.04, 61.67, 308.03°)
OKLaboklab(29.35% 0.0426 -0.1399)
OKLCHoklch(29.35% 0.146 286.9)
XYZxyz(4.1510, 2.1063, 15.2237)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D116F #536F11
analogous
#11246F #2D116F #5C116F
triadic
#2D116F #6F2D11 #116F2D
tetradic
#2D116F #6F1124 #536F11 #116F5C
square
#2D116F #6F1124 #536F11 #116F5C
split-complementary
#2D116F #6F5C11 #246F11
monochromatic
#0B041B #17093A #2D116F #4319A4 #5821D9

Accessibility & contrast

On white

14.78
#2D116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2D116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D116F
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D116F#FFFFFF#000000##FFFFFF
##2D116F1.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#0D2D41
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2d116f;
/* rgb */ color: rgb(45, 17, 111);
/* oklch */ color: oklch(29.4% 0.146 286.9);
Tailwind
colors: {
  custom: {
    50: '#6f5499',
    500: '#2d116f',
    950: '#000000',
  },
}
SCSS
$custom: #2d116f;
$custom-light: #6f5499;
$custom-dark: #000000;
JSON
{
  "hex": "#2d116f",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 257.872,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29351,
    "c": 0.1462,
    "h": 286.9
  },
  "luminance": 0.02106
}

Semantic roles & 50–950 ramp

primary
#2D116F
secondary
#85A635
accent
#F038B9
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2D116F

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

Preview Lab → · Contrast checker → · Palette generator →

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