#2D185B#2D185B

#2D185B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.113 H 291.9°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2D185B
RGBrgb(45, 24, 91)
HSLhsl(259, 58%, 23%)
HSVhsv(259, 74%, 36%)
CMYKcmyk(50.5%, 73.6%, 0%, 64.3%)
CIE-LABlab(15.31, 28.10, -36.56)
CIE-LCHlch(15.31, 46.11, 307.55°)
OKLaboklab(28.22% 0.0422 -0.1047)
OKLCHoklch(28.22% 0.113 291.9)
XYZxyz(3.2966, 1.9664, 10.1014)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D185B #465B18
analogous
#18245B #2D185B #4F185B
triadic
#2D185B #5B2D18 #185B2D
tetradic
#2D185B #5B1824 #465B18 #185B4F
square
#2D185B #5B1824 #465B18 #185B4F
split-complementary
#2D185B #5B4F18 #245B18
monochromatic
#0C0618 #150B2B #2D185B #45258B #5D32BC

Accessibility & contrast

On white

15.07
#2D185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2D185B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D185B
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D185B#FFFFFF#000000##FFFFFF
##2D185B1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#00255A
Tritanopia (blue-blind)
#1F2937
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2d185b;
/* rgb */ color: rgb(45, 24, 91);
/* oklch */ color: oklch(28.2% 0.113 291.9);
Tailwind
colors: {
  custom: {
    50: '#6b568a',
    500: '#2d185b',
    950: '#000000',
  },
}
SCSS
$custom: #2d185b;
$custom-light: #6b568a;
$custom-dark: #000000;
JSON
{
  "hex": "#2d185b",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 258.806,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28221,
    "c": 0.1129,
    "h": 291.9
  },
  "luminance": 0.01966
}

Semantic roles & 50–950 ramp

primary
#2D185B
secondary
#77923D
accent
#E146B1
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D185B

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

Preview Lab → · Contrast checker → · Palette generator →

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