#2D115A#2D115A

#2D115A is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.121 H 294.3°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2D115A
RGBrgb(45, 17, 90)
HSLhsl(263, 68%, 21%)
HSVhsv(263, 81%, 35%)
CMYKcmyk(50%, 81.1%, 0%, 64.7%)
CIE-LABlab(13.81, 31.74, -38.34)
CIE-LCHlch(13.81, 49.77, 309.62°)
OKLaboklab(27.13% 0.0497 -0.1099)
OKLCHoklch(27.13% 0.121 294.3)
XYZxyz(3.1276, 1.6969, 9.8336)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D115A #3E5A11
analogous
#11195A #2D115A #51115A
triadic
#2D115A #5A2D11 #115A2D
tetradic
#2D115A #5A1119 #3E5A11 #115A51
square
#2D115A #5A1119 #3E5A11 #115A51
split-complementary
#2D115A #5A5111 #195A11
monochromatic
#0D051A #130727 #2D115A #471B8D #6024C1

Accessibility & contrast

On white

15.68
#2D115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2D115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D115A
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D115A#FFFFFF#000000##FFFFFF
##2D115A1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#202535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2d115a;
/* rgb */ color: rgb(45, 17, 90);
/* oklch */ color: oklch(27.1% 0.121 294.3);
Tailwind
colors: {
  custom: {
    50: '#6b5289',
    500: '#2d115a',
    950: '#000000',
  },
}
SCSS
$custom: #2d115a;
$custom-light: #6b5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2d115a",
  "rgb": {
    "r": 45,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 263.014,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27127,
    "c": 0.12061,
    "h": 294.3
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#2D115A
secondary
#6E9334
accent
#EB3DA8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2D115A

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

Preview Lab → · Contrast checker → · Palette generator →

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