#3D288B#3D288B

#3D288B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.155 H 285.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3D288B
RGBrgb(61, 40, 139)
HSLhsl(253, 55%, 35%)
HSVhsv(253, 71%, 55%)
CMYKcmyk(56.1%, 71.2%, 0%, 45.5%)
CIE-LABlab(24.87, 36.78, -51.80)
CIE-LCHlch(24.87, 63.53, 305.38°)
OKLaboklab(36.83% 0.0419 -0.149)
OKLCHoklch(36.83% 0.155 285.7)
XYZxyz(7.3421, 4.3734, 24.8784)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D288B #768B28
analogous
#28458B #3D288B #6E288B
triadic
#3D288B #8B3D28 #288B3D
tetradic
#3D288B #8B2845 #768B28 #288B6E
square
#3D288B #8B2845 #768B28 #288B6E
split-complementary
#3D288B #8B6E28 #458B28
monochromatic
#130D2C #281A5B #3D288B #5236BB #755DD0

Accessibility & contrast

On white

11.20
#3D288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3D288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D288B
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D288B#FFFFFF#000000##FFFFFF
##3D288B1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#1B4256
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3d288b;
/* rgb */ color: rgb(61, 40, 139);
/* oklch */ color: oklch(36.8% 0.155 285.7);
Tailwind
colors: {
  custom: {
    50: '#7b64ae',
    500: '#3d288b',
    950: '#000000',
  },
}
SCSS
$custom: #3d288b;
$custom-light: #7b64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d288b",
  "rgb": {
    "r": 61,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 252.727,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36831,
    "c": 0.15474,
    "h": 285.7
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#3D288B
secondary
#A2B659
accent
#DF49BF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3D288B

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

Preview Lab → · Contrast checker → · Palette generator →

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