#3D228C#3D228C

#3D228C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.163 H 286.7°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3D228C
RGBrgb(61, 34, 140)
HSLhsl(255, 61%, 34%)
HSVhsv(255, 76%, 55%)
CMYKcmyk(56.4%, 75.7%, 0%, 45.1%)
CIE-LABlab(23.77, 40.43, -54.23)
CIE-LCHlch(23.77, 67.64, 306.70°)
OKLaboklab(36.08% 0.0469 -0.156)
OKLCHoklch(36.08% 0.163 286.7)
XYZxyz(7.2287, 4.0292, 25.2027)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D228C #718C22
analogous
#223C8C #3D228C #72228C
triadic
#3D228C #8C3D22 #228C3D
tetradic
#3D228C #8C223C #718C22 #228C72
square
#3D228C #8C223C #718C22 #228C72
split-complementary
#3D228C #8C7222 #3C8C22
monochromatic
#120A2A #28165B #3D228C #522EBD #7453D5

Accessibility & contrast

On white

11.63
#3D228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3D228C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D228C#FFFFFF#000000##FFFFFF
##3D228C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#1A3F55
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d228c;
/* rgb */ color: rgb(61, 34, 140);
/* oklch */ color: oklch(36.1% 0.163 286.7);
Tailwind
colors: {
  custom: {
    50: '#7c60af',
    500: '#3d228c',
    950: '#000000',
  },
}
SCSS
$custom: #3d228c;
$custom-light: #7c60af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d228c",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 255.283,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36077,
    "c": 0.16293,
    "h": 286.7
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#3D228C
secondary
#9EB951
accent
#E444BB
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D228C

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

Preview Lab → · Contrast checker → · Palette generator →

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