#3D228F#3D228F

#3D228F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.167 H 286.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3D228F
RGBrgb(61, 34, 143)
HSLhsl(255, 62%, 35%)
HSVhsv(255, 76%, 56%)
CMYKcmyk(57.3%, 76.2%, 0%, 43.9%)
CIE-LABlab(24.06, 41.33, -55.62)
CIE-LCHlch(24.06, 69.29, 306.62°)
OKLaboklab(36.37% 0.0461 -0.1601)
OKLCHoklch(36.37% 0.167 286.1)
XYZxyz(7.4529, 4.1189, 26.3836)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D228F #748F22
analogous
#223E8F #3D228F #73228F
triadic
#3D228F #8F3D22 #228F3D
tetradic
#3D228F #8F223E #748F22 #228F73
square
#3D228F #8F223E #748F22 #228F73
split-complementary
#3D228F #8F7322 #3E8F22
monochromatic
#130A2C #28165E #3D228F #522EC0 #7555D7

Accessibility & contrast

On white

11.51
#3D228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3D228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D228F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D228F#FFFFFF#000000##FFFFFF
##3D228F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#164057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d228f;
/* rgb */ color: rgb(61, 34, 143);
/* oklch */ color: oklch(36.4% 0.167 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c60b1',
    500: '#3d228f',
    950: '#000000',
  },
}
SCSS
$custom: #3d228f;
$custom-light: #7c60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3d228f",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 254.862,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36373,
    "c": 0.1666,
    "h": 286.1
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#3D228F
secondary
#A1BA52
accent
#E543BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3D228F

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

Preview Lab → · Contrast checker → · Palette generator →

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