#2D155C#2D155C

#2D155C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.118 H 292.5°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#2D155C
RGBrgb(45, 21, 92)
HSLhsl(260, 63%, 22%)
HSVhsv(260, 77%, 36%)
CMYKcmyk(51.1%, 77.2%, 0%, 63.9%)
CIE-LABlab(14.77, 30.17, -38.10)
CIE-LCHlch(14.77, 48.60, 308.37°)
OKLaboklab(27.87% 0.0452 -0.1093)
OKLCHoklch(27.87% 0.118 292.5)
XYZxyz(3.2816, 1.8668, 10.3106)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D155C #445C15
analogous
#15205C #2D155C #51155C
triadic
#2D155C #5C2D15 #155C2D
tetradic
#2D155C #5C1520 #445C15 #155C51
square
#2D155C #5C1520 #445C15 #155C51
split-complementary
#2D155C #5C5115 #205C15
monochromatic
#0C0619 #150A2A #2D155C #45208E #5E2CC0

Accessibility & contrast

On white

15.29
#2D155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2D155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D155C
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D155C#FFFFFF#000000##FFFFFF
##2D155C1.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00245B
Tritanopia (blue-blind)
#1E2737
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d155c;
/* rgb */ color: rgb(45, 21, 92);
/* oklch */ color: oklch(27.9% 0.118 292.5);
Tailwind
colors: {
  custom: {
    50: '#6b558b',
    500: '#2d155c',
    950: '#000000',
  },
}
SCSS
$custom: #2d155c;
$custom-light: #6b558b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d155c",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 260.282,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27867,
    "c": 0.11823,
    "h": 292.5
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#2D155C
secondary
#759339
accent
#E642AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D155C

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

Preview Lab → · Contrast checker → · Palette generator →

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