#2D155F#2D155F

#2D155F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.122 H 291.3°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#2D155F
RGBrgb(45, 21, 95)
HSLhsl(259, 64%, 23%)
HSVhsv(259, 78%, 37%)
CMYKcmyk(52.6%, 77.9%, 0%, 62.7%)
CIE-LABlab(15.06, 31.10, -39.63)
CIE-LCHlch(15.06, 50.38, 308.12°)
OKLaboklab(28.16% 0.0444 -0.1137)
OKLCHoklch(28.16% 0.122 291.3)
XYZxyz(3.4153, 1.9203, 11.0150)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D155F #475F15
analogous
#15225F #2D155F #52155F
triadic
#2D155F #5F2D15 #155F2D
tetradic
#2D155F #5F1522 #475F15 #155F52
square
#2D155F #5F1522 #475F15 #155F52
split-complementary
#2D155F #5F5215 #225F15
monochromatic
#0C0619 #150A2D #2D155F #452091 #5C2BC3

Accessibility & contrast

On white

15.17
#2D155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2D155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D155F
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D155F#FFFFFF#000000##FFFFFF
##2D155F1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#1C2938
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d155f;
/* rgb */ color: rgb(45, 21, 95);
/* oklch */ color: oklch(28.2% 0.122 291.3);
Tailwind
colors: {
  custom: {
    50: '#6c558d',
    500: '#2d155f',
    950: '#000000',
  },
}
SCSS
$custom: #2d155f;
$custom-light: #6c558d;
$custom-dark: #000000;
JSON
{
  "hex": "#2d155f",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 259.459,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28163,
    "c": 0.12211,
    "h": 291.3
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#2D155F
secondary
#78963A
accent
#E741B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D155F

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

Preview Lab → · Contrast checker → · Palette generator →

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