#3D228D#3D228D

#3D228D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.164 H 286.5°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3D228D
RGBrgb(61, 34, 141)
HSLhsl(255, 61%, 34%)
HSVhsv(255, 76%, 55%)
CMYKcmyk(56.7%, 75.9%, 0%, 44.7%)
CIE-LABlab(23.86, 40.73, -54.70)
CIE-LCHlch(23.86, 68.20, 306.67°)
OKLaboklab(36.18% 0.0466 -0.1574)
OKLCHoklch(36.18% 0.164 286.5)
XYZxyz(7.3028, 4.0588, 25.5928)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D228D #728D22
analogous
#223D8D #3D228D #73228D
triadic
#3D228D #8D3D22 #228D3D
tetradic
#3D228D #8D223D #728D22 #228D73
square
#3D228D #8D223D #728D22 #228D73
split-complementary
#3D228D #8D7322 #3D8D22
monochromatic
#120A2A #28165C #3D228D #522EBE #7554D6

Accessibility & contrast

On white

11.59
#3D228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3D228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D228D
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D228D#FFFFFF#000000##FFFFFF
##3D228D1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#194056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d228d;
/* rgb */ color: rgb(61, 34, 141);
/* oklch */ color: oklch(36.2% 0.164 286.5);
Tailwind
colors: {
  custom: {
    50: '#7c60af',
    500: '#3d228d',
    950: '#000000',
  },
}
SCSS
$custom: #3d228d;
$custom-light: #7c60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d228d",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 255.14,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36175,
    "c": 0.16416,
    "h": 286.5
  },
  "luminance": 0.04059
}

Semantic roles & 50–950 ramp

primary
#3D228D
secondary
#9FB951
accent
#E444BC
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D228D

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

Preview Lab → · Contrast checker → · Palette generator →

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