#3D287E#3D287E

#3D287E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.138 H 288.6°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#3D287E
RGBrgb(61, 40, 126)
HSLhsl(255, 52%, 33%)
HSVhsv(255, 68%, 49%)
CMYKcmyk(51.6%, 68.3%, 0%, 50.6%)
CIE-LABlab(23.72, 32.70, -45.52)
CIE-LCHlch(23.72, 56.05, 305.69°)
OKLaboklab(35.65% 0.044 -0.1305)
OKLCHoklch(35.65% 0.138 288.6)
XYZxyz(6.4481, 4.0158, 20.1700)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D287E #697E28
analogous
#283E7E #3D287E #68287E
triadic
#3D287E #7E3D28 #287E3D
tetradic
#3D287E #7E283E #697E28 #287E68
square
#3D287E #7E283E #697E28 #287E68
split-complementary
#3D287E #7E6828 #3E7E28
monochromatic
#100B21 #271950 #3D287E #5337AC #7357CA

Accessibility & contrast

On white

11.65
#3D287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D287E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D287E
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D287E#FFFFFF#000000##FFFFFF
##3D287E1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#263D4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d287e;
/* rgb */ color: rgb(61, 40, 126);
/* oklch */ color: oklch(35.7% 0.138 288.6);
Tailwind
colors: {
  custom: {
    50: '#7963a4',
    500: '#3d287e',
    950: '#000000',
  },
}
SCSS
$custom: #3d287e;
$custom-light: #7963a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d287e",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 254.651,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35653,
    "c": 0.13773,
    "h": 288.6
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#3D287E
secondary
#98AF53
accent
#DB4DB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #3D287E

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

Preview Lab → · Contrast checker → · Palette generator →

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