#3D185E#3D185E

#3D185E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.119 H 304.4°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#3D185E
RGBrgb(61, 24, 94)
HSLhsl(272, 59%, 23%)
HSVhsv(272, 74%, 37%)
CMYKcmyk(35.1%, 74.5%, 0%, 63.1%)
CIE-LABlab(17.71, 32.47, -34.57)
CIE-LCHlch(17.71, 47.43, 313.21°)
OKLaboklab(30.49% 0.0672 -0.0982)
OKLCHoklch(30.49% 0.119 304.4)
XYZxyz(4.2710, 2.4535, 10.8361)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D185E #395E18
analogous
#1A185E #3D185E #5E185C
triadic
#3D185E #5E3D18 #185E3D
tetradic
#3D185E #5E1A18 #395E18 #185C5E
square
#3D185E #5E1A18 #395E18 #185C5E
split-complementary
#3D185E #5C5E18 #185E1A
monochromatic
#100618 #1D0C2D #3D185E #5D248F #7C31C0

Accessibility & contrast

On white

14.09
#3D185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3D185E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D185E
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D185E#FFFFFF#000000##FFFFFF
##3D185E1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#372839
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3d185e;
/* rgb */ color: rgb(61, 24, 94);
/* oklch */ color: oklch(30.5% 0.119 304.4);
Tailwind
colors: {
  custom: {
    50: '#76588c',
    500: '#3d185e',
    950: '#000000',
  },
}
SCSS
$custom: #3d185e;
$custom-light: #76588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3d185e",
  "rgb": {
    "r": 61,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 271.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.11902,
    "h": 304.4
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#3D185E
secondary
#66943D
accent
#E3458F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3D185E

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

Preview Lab → · Contrast checker → · Palette generator →

#3D185E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva