#2D153E#2D153E

#2D153E is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.078 H 308.9°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#2D153E
RGBrgb(45, 21, 62)
HSLhsl(275, 49%, 16%)
HSVhsv(275, 66%, 24%)
CMYKcmyk(27.4%, 66.1%, 0%, 75.7%)
CIE-LABlab(12.24, 21.22, -21.57)
CIE-LCHlch(12.24, 30.25, 314.53°)
OKLaboklab(25.24% 0.0489 -0.0607)
OKLCHoklch(25.24% 0.078 308.9)
XYZxyz(2.2197, 1.4421, 4.7179)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D153E #263E15
analogous
#19153E #2D153E #3E153B
triadic
#2D153E #3E2D15 #153E2D
tetradic
#2D153E #3E1915 #263E15 #153B3E
square
#2D153E #3E1915 #263E15 #153B3E
split-complementary
#2D153E #3B3E15 #153E19
monochromatic
#110817 #110817 #2D153E #4E246C #6F3499

Accessibility & contrast

On white

16.30
#2D153E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2D153E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D153E
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D153E#FFFFFF#000000##FFFFFF
##2D153E1.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071F3F
Deuteranopia (green-blind)
#10203D
Tritanopia (blue-blind)
#2B1D27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2d153e;
/* rgb */ color: rgb(45, 21, 62);
/* oklch */ color: oklch(25.2% 0.078 308.9);
Tailwind
colors: {
  custom: {
    50: '#675373',
    500: '#2d153e',
    950: '#000000',
  },
}
SCSS
$custom: #2d153e;
$custom-light: #675373;
$custom-dark: #000000;
JSON
{
  "hex": "#2d153e",
  "rgb": {
    "r": 45,
    "g": 21,
    "b": 62
  },
  "hsl": {
    "h": 275.122,
    "s": 49.398,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25242,
    "c": 0.07794,
    "h": 308.9
  },
  "luminance": 0.01442
}

Semantic roles & 50–950 ramp

primary
#2D153E
secondary
#527639
accent
#D94F88
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2D153E

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

Preview Lab → · Contrast checker → · Palette generator →

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