#2D155B#2D155B

#2D155B is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.117 H 292.9°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#2D155B
RGBrgb(45, 21, 91)
HSLhsl(261, 63%, 22%)
HSVhsv(261, 77%, 36%)
CMYKcmyk(50.5%, 76.9%, 0%, 64.3%)
CIE-LABlab(14.68, 29.87, -37.59)
CIE-LCHlch(14.68, 48.01, 308.47°)
OKLaboklab(27.77% 0.0454 -0.1077)
OKLCHoklch(27.77% 0.117 292.9)
XYZxyz(3.2382, 1.8494, 10.0819)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D155B #435B15
analogous
#15205B #2D155B #50155B
triadic
#2D155B #5B2D15 #155B2D
tetradic
#2D155B #5B1520 #435B15 #155B50
square
#2D155B #5B1520 #435B15 #155B50
split-complementary
#2D155B #5B5015 #205B15
monochromatic
#0C0619 #140A29 #2D155B #46208D #5E2CBE

Accessibility & contrast

On white

15.33
#2D155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D155B
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D155B#FFFFFF#000000##FFFFFF
##2D155B1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00245A
Tritanopia (blue-blind)
#1F2736
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2d155b;
/* rgb */ color: rgb(45, 21, 91);
/* oklch */ color: oklch(27.8% 0.117 292.9);
Tailwind
colors: {
  custom: {
    50: '#6b558a',
    500: '#2d155b',
    950: '#000000',
  },
}
SCSS
$custom: #2d155b;
$custom-light: #6b558a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d155b",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 260.571,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27769,
    "c": 0.11693,
    "h": 292.9
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D155B

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

Preview Lab → · Contrast checker → · Palette generator →

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