#2D115C#2D115C

#2D115C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.123 H 293.5°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#2D115C
RGBrgb(45, 17, 92)
HSLhsl(262, 69%, 21%)
HSVhsv(262, 82%, 36%)
CMYKcmyk(51.1%, 81.5%, 0%, 63.9%)
CIE-LABlab(14.01, 32.33, -39.35)
CIE-LCHlch(14.01, 50.93, 309.41°)
OKLaboklab(27.33% 0.0491 -0.1129)
OKLCHoklch(27.33% 0.123 293.5)
XYZxyz(3.2139, 1.7314, 10.2880)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D115C #405C11
analogous
#111B5C #2D115C #53115C
triadic
#2D115C #5C2D11 #115C2D
tetradic
#2D115C #5C111B #405C11 #115C53
square
#2D115C #5C111B #405C11 #115C53
split-complementary
#2D115C #5C5311 #1B5C11
monochromatic
#0D051A #140728 #2D115C #461B90 #6024C3

Accessibility & contrast

On white

15.60
#2D115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D115C
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D115C#FFFFFF#000000##FFFFFF
##2D115C1.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#1F2636
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2d115c;
/* rgb */ color: rgb(45, 17, 92);
/* oklch */ color: oklch(27.3% 0.123 293.5);
Tailwind
colors: {
  custom: {
    50: '#6c528b',
    500: '#2d115c',
    950: '#000000',
  },
}
SCSS
$custom: #2d115c;
$custom-light: #6c528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d115c",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 262.4,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27329,
    "c": 0.12309,
    "h": 293.5
  },
  "luminance": 0.01731
}

Semantic roles & 50–950 ramp

primary
#2D115C
secondary
#719534
accent
#EC3CAA
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D115C

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

Preview Lab → · Contrast checker → · Palette generator →

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