#3D227B#3D227B

#3D227B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.142 H 291.0°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3D227B
RGBrgb(61, 34, 123)
HSLhsl(258, 57%, 31%)
HSVhsv(258, 72%, 48%)
CMYKcmyk(50.4%, 72.4%, 0%, 51.8%)
CIE-LABlab(22.18, 35.29, -46.13)
CIE-LCHlch(22.18, 58.08, 307.41°)
OKLaboklab(34.47% 0.0508 -0.1323)
OKLCHoklch(34.47% 0.142 291)
XYZxyz(6.0706, 3.5660, 19.1035)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D227B #607B22
analogous
#22337B #3D227B #69227B
triadic
#3D227B #7B3D22 #227B3D
tetradic
#3D227B #7B2233 #607B22 #227B69
square
#3D227B #7B2233 #607B22 #227B69
split-complementary
#3D227B #7B6922 #337B22
monochromatic
#0D071B #25154B #3D227B #552FAB #724ACD

Accessibility & contrast

On white

12.26
#3D227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3D227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D227B
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D227B#FFFFFF#000000##FFFFFF
##3D227B1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003379
Tritanopia (blue-blind)
#29394C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3d227b;
/* rgb */ color: rgb(61, 34, 123);
/* oklch */ color: oklch(34.5% 0.142 291.0);
Tailwind
colors: {
  custom: {
    50: '#795fa2',
    500: '#3d227b',
    950: '#000000',
  },
}
SCSS
$custom: #3d227b;
$custom-light: #795fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d227b",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 258.202,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.1417,
    "h": 291
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#3D227B
secondary
#90AE4B
accent
#E048B2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D227B

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

Preview Lab → · Contrast checker → · Palette generator →

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