#2D185D#2D185D

#2D185D is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.116 H 291.2°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#2D185D
RGBrgb(45, 24, 93)
HSLhsl(258, 59%, 23%)
HSVhsv(258, 74%, 36%)
CMYKcmyk(51.6%, 74.2%, 0%, 63.5%)
CIE-LABlab(15.49, 28.74, -37.59)
CIE-LCHlch(15.49, 47.32, 307.39°)
OKLaboklab(28.41% 0.0418 -0.1078)
OKLCHoklch(28.41% 0.116 291.2)
XYZxyz(3.3840, 2.0013, 10.5618)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D185D #485D18
analogous
#18255D #2D185D #4F185D
triadic
#2D185D #5D2D18 #185D2D
tetradic
#2D185D #5D1825 #485D18 #185D4F
square
#2D185D #5D1825 #485D18 #185D4F
split-complementary
#2D185D #5D4F18 #255D18
monochromatic
#0C0618 #150B2C #2D185D #45258E #5C31BE

Accessibility & contrast

On white

15.00
#2D185D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2D185D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D185D
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D185D#FFFFFF#000000##FFFFFF
##2D185D1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#1E2938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2d185d;
/* rgb */ color: rgb(45, 24, 93);
/* oklch */ color: oklch(28.4% 0.116 291.2);
Tailwind
colors: {
  custom: {
    50: '#6b578c',
    500: '#2d185d',
    950: '#000000',
  },
}
SCSS
$custom: #2d185d;
$custom-light: #6b578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2d185d",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 93
  },
  "hsl": {
    "h": 258.261,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.2841,
    "c": 0.11559,
    "h": 291.2
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#2D185D
secondary
#79933D
accent
#E246B3
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D185D

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

Preview Lab → · Contrast checker → · Palette generator →

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