#3D288E#3D288E

#3D288E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.1% C 0.159 H 285.1°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3D288E
RGBrgb(61, 40, 142)
HSLhsl(252, 56%, 36%)
HSVhsv(252, 72%, 56%)
CMYKcmyk(57%, 71.8%, 0%, 44.3%)
CIE-LABlab(25.14, 37.72, -53.22)
CIE-LCHlch(25.14, 65.23, 305.33°)
OKLaboklab(37.11% 0.0413 -0.1531)
OKLCHoklch(37.11% 0.159 285.1)
XYZxyz(7.5643, 4.4622, 26.0487)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D288E #798E28
analogous
#28468E #3D288E #70288E
triadic
#3D288E #8E3D28 #288E3D
tetradic
#3D288E #8E2846 #798E28 #288E70
square
#3D288E #8E2846 #798E28 #288E70
split-complementary
#3D288E #8E7028 #468E28
monochromatic
#140D2F #281B5E #3D288E #5235BE #765FD2

Accessibility & contrast

On white

11.10
#3D288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3D288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D288E
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D288E#FFFFFF#000000##FFFFFF
##3D288E1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#174358
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3d288e;
/* rgb */ color: rgb(61, 40, 142);
/* oklch */ color: oklch(37.1% 0.159 285.1);
Tailwind
colors: {
  custom: {
    50: '#7c64b0',
    500: '#3d288e',
    950: '#000000',
  },
}
SCSS
$custom: #3d288e;
$custom-light: #7c64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d288e",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 252.353,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37112,
    "c": 0.15858,
    "h": 285.1
  },
  "luminance": 0.04463
}

Semantic roles & 50–950 ramp

primary
#3D288E
secondary
#A4B75B
accent
#DF48C0
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3D288E

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

Preview Lab → · Contrast checker → · Palette generator →

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