#3D228E#3D228E

#3D228E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.165 H 286.3°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3D228E
RGBrgb(61, 34, 142)
HSLhsl(255, 61%, 35%)
HSVhsv(255, 76%, 56%)
CMYKcmyk(57%, 76.1%, 0%, 44.3%)
CIE-LABlab(23.96, 41.03, -55.16)
CIE-LCHlch(23.96, 68.75, 306.65°)
OKLaboklab(36.27% 0.0464 -0.1587)
OKLCHoklch(36.27% 0.165 286.3)
XYZxyz(7.3775, 4.0887, 25.9864)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D228E #738E22
analogous
#223D8E #3D228E #73228E
triadic
#3D228E #8E3D22 #228E3D
tetradic
#3D228E #8E223D #738E22 #228E73
square
#3D228E #8E223D #738E22 #228E73
split-complementary
#3D228E #8E7322 #3D8E22
monochromatic
#130A2B #28165D #3D228E #522EBF #7554D6

Accessibility & contrast

On white

11.55
#3D228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D228E
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D228E#FFFFFF#000000##FFFFFF
##3D228E1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#184056
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d228e;
/* rgb */ color: rgb(61, 34, 142);
/* oklch */ color: oklch(36.3% 0.165 286.3);
Tailwind
colors: {
  custom: {
    50: '#7c60b0',
    500: '#3d228e',
    950: '#000000',
  },
}
SCSS
$custom: #3d228e;
$custom-light: #7c60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3d228e",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 255,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36274,
    "c": 0.16539,
    "h": 286.3
  },
  "luminance": 0.04089
}

Semantic roles & 50–950 ramp

primary
#3D228E
secondary
#A0BA52
accent
#E443BC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3D228E

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

Preview Lab → · Contrast checker → · Palette generator →

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