#3D227E#3D227E

#3D227E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.146 H 290.2°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#3D227E
RGBrgb(61, 34, 126)
HSLhsl(258, 58%, 31%)
HSVhsv(258, 73%, 49%)
CMYKcmyk(51.6%, 73%, 0%, 50.6%)
CIE-LABlab(22.45, 36.19, -47.60)
CIE-LCHlch(22.45, 59.80, 307.25°)
OKLaboklab(34.74% 0.0502 -0.1366)
OKLCHoklch(34.74% 0.146 290.2)
XYZxyz(6.2613, 3.6423, 20.1077)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D227E #637E22
analogous
#22357E #3D227E #6B227E
triadic
#3D227E #7E3D22 #227E3D
tetradic
#3D227E #7E2235 #637E22 #227E6B
square
#3D227E #7E2235 #637E22 #227E6B
split-complementary
#3D227E #7E6B22 #357E22
monochromatic
#0E081E #26154E #3D227E #542FAE #724CCF

Accessibility & contrast

On white

12.15
#3D227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3D227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D227E
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D227E#FFFFFF#000000##FFFFFF
##3D227E1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#273A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d227e;
/* rgb */ color: rgb(61, 34, 126);
/* oklch */ color: oklch(34.7% 0.146 290.2);
Tailwind
colors: {
  custom: {
    50: '#795fa4',
    500: '#3d227e',
    950: '#000000',
  },
}
SCSS
$custom: #3d227e;
$custom-light: #795fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d227e",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 257.609,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34741,
    "c": 0.14551,
    "h": 290.2
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#3D227E
secondary
#93B14B
accent
#E147B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D227E

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

Preview Lab → · Contrast checker → · Palette generator →

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