#2D115F#2D115F

#2D115F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.127 H 292.3°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#2D115F
RGBrgb(45, 17, 95)
HSLhsl(262, 70%, 22%)
HSVhsv(262, 82%, 37%)
CMYKcmyk(52.6%, 82.1%, 0%, 62.7%)
CIE-LABlab(14.32, 33.23, -40.86)
CIE-LCHlch(14.32, 52.66, 309.12°)
OKLaboklab(27.64% 0.0481 -0.1173)
OKLCHoklch(27.64% 0.127 292.3)
XYZxyz(3.3476, 1.7849, 10.9924)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D115F #435F11
analogous
#111C5F #2D115F #54115F
triadic
#2D115F #5F2D11 #115F2D
tetradic
#2D115F #5F111C #435F11 #115F54
square
#2D115F #5F111C #435F11 #115F54
split-complementary
#2D115F #5F5411 #1C5F11
monochromatic
#0C051A #14082B #2D115F #461A93 #5E24C7

Accessibility & contrast

On white

15.48
#2D115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2D115F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D115F
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D115F#FFFFFF#000000##FFFFFF
##2D115F1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#1D2737
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d115f;
/* rgb */ color: rgb(45, 17, 95);
/* oklch */ color: oklch(27.6% 0.127 292.3);
Tailwind
colors: {
  custom: {
    50: '#6c538d',
    500: '#2d115f',
    950: '#000000',
  },
}
SCSS
$custom: #2d115f;
$custom-light: #6c538d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d115f",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 261.538,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27637,
    "c": 0.12679,
    "h": 292.3
  },
  "luminance": 0.01785
}

Semantic roles & 50–950 ramp

primary
#2D115F
secondary
#749834
accent
#EC3BAD
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D115F

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

Preview Lab → · Contrast checker → · Palette generator →

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