#2D115D#2D115D

#2D115D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.124 H 293.1°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2D115D
RGBrgb(45, 17, 93)
HSLhsl(262, 69%, 22%)
HSVhsv(262, 82%, 36%)
CMYKcmyk(51.6%, 81.7%, 0%, 63.5%)
CIE-LABlab(14.11, 32.63, -39.86)
CIE-LCHlch(14.11, 51.51, 309.31°)
OKLaboklab(27.43% 0.0488 -0.1144)
OKLCHoklch(27.43% 0.124 293.1)
XYZxyz(3.2579, 1.7490, 10.5197)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D115D #415D11
analogous
#111B5D #2D115D #53115D
triadic
#2D115D #5D2D11 #115D2D
tetradic
#2D115D #5D111B #415D11 #115D53
square
#2D115D #5D111B #415D11 #115D53
split-complementary
#2D115D #5D5311 #1B5D11
monochromatic
#0D051A #140829 #2D115D #461A91 #5F24C4

Accessibility & contrast

On white

15.56
#2D115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2D115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D115D
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D115D#FFFFFF#000000##FFFFFF
##2D115D1.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#1E2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d115d;
/* rgb */ color: rgb(45, 17, 93);
/* oklch */ color: oklch(27.4% 0.124 293.1);
Tailwind
colors: {
  custom: {
    50: '#6c528c',
    500: '#2d115d',
    950: '#000000',
  },
}
SCSS
$custom: #2d115d;
$custom-light: #6c528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d115d",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 262.105,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27431,
    "c": 0.12433,
    "h": 293.1
  },
  "luminance": 0.01749
}

Semantic roles & 50–950 ramp

primary
#2D115D
secondary
#729634
accent
#EC3CAB
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D115D

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

Preview Lab → · Contrast checker → · Palette generator →

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