#2D185C#2D185C

#2D185C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.114 H 291.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2D185C
RGBrgb(45, 24, 92)
HSLhsl(259, 59%, 23%)
HSVhsv(259, 74%, 36%)
CMYKcmyk(51.1%, 73.9%, 0%, 63.9%)
CIE-LABlab(15.40, 28.42, -37.08)
CIE-LCHlch(15.40, 46.72, 307.47°)
OKLaboklab(28.32% 0.042 -0.1062)
OKLCHoklch(28.32% 0.114 291.6)
XYZxyz(3.3400, 1.9837, 10.3301)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D185C #475C18
analogous
#18255C #2D185C #4F185C
triadic
#2D185C #5C2D18 #185C2D
tetradic
#2D185C #5C1825 #475C18 #185C4F
square
#2D185C #5C1825 #475C18 #185C4F
split-complementary
#2D185C #5C4F18 #255C18
monochromatic
#0C0618 #150B2B #2D185C #45258D #5C31BD

Accessibility & contrast

On white

15.03
#2D185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D185C
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D185C#FFFFFF#000000##FFFFFF
##2D185C1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d185c;
/* rgb */ color: rgb(45, 24, 92);
/* oklch */ color: oklch(28.3% 0.114 291.6);
Tailwind
colors: {
  custom: {
    50: '#6b568b',
    500: '#2d185c',
    950: '#000000',
  },
}
SCSS
$custom: #2d185c;
$custom-light: #6b568b;
$custom-dark: #000000;
JSON
{
  "hex": "#2d185c",
  "rgb": {
    "r": 45,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 258.529,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28315,
    "c": 0.11424,
    "h": 291.6
  },
  "luminance": 0.01984
}

Semantic roles & 50–950 ramp

primary
#2D185C
secondary
#78933D
accent
#E246B2
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2D185C

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

Preview Lab → · Contrast checker → · Palette generator →

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