#2D155D#2D155D

#2D155D is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.120 H 292.1°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#2D155D
RGBrgb(45, 21, 93)
HSLhsl(260, 63%, 22%)
HSVhsv(260, 77%, 36%)
CMYKcmyk(51.6%, 77.4%, 0%, 63.5%)
CIE-LABlab(14.87, 30.48, -38.62)
CIE-LCHlch(14.87, 49.20, 308.29°)
OKLaboklab(27.97% 0.0449 -0.1108)
OKLCHoklch(27.97% 0.12 292.1)
XYZxyz(3.3256, 1.8844, 10.5423)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D155D #455D15
analogous
#15215D #2D155D #51155D
triadic
#2D155D #5D2D15 #155D2D
tetradic
#2D155D #5D1521 #455D15 #155D51
square
#2D155D #5D1521 #455D15 #155D51
split-complementary
#2D155D #5D5115 #215D15
monochromatic
#0C0619 #150A2B #2D155D #45208F #5D2CC1

Accessibility & contrast

On white

15.25
#2D155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D155D
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D155D#FFFFFF#000000##FFFFFF
##2D155D1.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00245C
Tritanopia (blue-blind)
#1E2837
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d155d;
/* rgb */ color: rgb(45, 21, 93);
/* oklch */ color: oklch(28.0% 0.120 292.1);
Tailwind
colors: {
  custom: {
    50: '#6c558c',
    500: '#2d155d',
    950: '#000000',
  },
}
SCSS
$custom: #2d155d;
$custom-light: #6c558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d155d",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 260,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27965,
    "c": 0.11953,
    "h": 292.1
  },
  "luminance": 0.01885
}

Semantic roles & 50–950 ramp

primary
#2D155D
secondary
#769439
accent
#E642AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D155D

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

Preview Lab → · Contrast checker → · Palette generator →

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