#2D155E#2D155E

#2D155E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.121 H 291.7°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#2D155E
RGBrgb(45, 21, 94)
HSLhsl(260, 63%, 23%)
HSVhsv(260, 78%, 37%)
CMYKcmyk(52.1%, 77.7%, 0%, 63.1%)
CIE-LABlab(14.97, 30.79, -39.13)
CIE-LCHlch(14.97, 49.79, 308.20°)
OKLaboklab(28.06% 0.0447 -0.1122)
OKLCHoklch(28.06% 0.121 291.7)
XYZxyz(3.3702, 1.9022, 10.7771)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D155E #465E15
analogous
#15225E #2D155E #51155E
triadic
#2D155E #5E2D15 #155E2D
tetradic
#2D155E #5E1522 #465E15 #155E51
square
#2D155E #5E1522 #465E15 #155E51
split-complementary
#2D155E #5E5115 #225E15
monochromatic
#0C0619 #150A2C #2D155E #452090 #5D2BC2

Accessibility & contrast

On white

15.21
#2D155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D155E
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D155E#FFFFFF#000000##FFFFFF
##2D155E1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00245D
Tritanopia (blue-blind)
#1D2838
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d155e;
/* rgb */ color: rgb(45, 21, 94);
/* oklch */ color: oklch(28.1% 0.121 291.7);
Tailwind
colors: {
  custom: {
    50: '#6c558c',
    500: '#2d155e',
    950: '#000000',
  },
}
SCSS
$custom: #2d155e;
$custom-light: #6c558c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d155e",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 259.726,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28064,
    "c": 0.12082,
    "h": 291.7
  },
  "luminance": 0.01902
}

Semantic roles & 50–950 ramp

primary
#2D155E
secondary
#779539
accent
#E741B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D155E

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

Preview Lab → · Contrast checker → · Palette generator →

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