#3D228B#3D228B

#3D228B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.162 H 286.9°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#3D228B
RGBrgb(61, 34, 139)
HSLhsl(255, 61%, 34%)
HSVhsv(255, 76%, 55%)
CMYKcmyk(56.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(23.67, 40.13, -53.77)
CIE-LCHlch(23.67, 67.09, 306.73°)
OKLaboklab(35.98% 0.0471 -0.1547)
OKLCHoklch(35.98% 0.162 286.9)
XYZxyz(7.1553, 3.9999, 24.8161)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D228B #708B22
analogous
#223B8B #3D228B #72228B
triadic
#3D228B #8B3D22 #228B3D
tetradic
#3D228B #8B223B #708B22 #228B72
square
#3D228B #8B223B #708B22 #228B72
split-complementary
#3D228B #8B7222 #3B8B22
monochromatic
#120A29 #27165A #3D228B #532EBC #7453D5

Accessibility & contrast

On white

11.67
#3D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3D228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D228B
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D228B#FFFFFF#000000##FFFFFF
##3D228B1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#1B3F54
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3d228b;
/* rgb */ color: rgb(61, 34, 139);
/* oklch */ color: oklch(36.0% 0.162 286.9);
Tailwind
colors: {
  custom: {
    50: '#7c60ae',
    500: '#3d228b',
    950: '#000000',
  },
}
SCSS
$custom: #3d228b;
$custom-light: #7c60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3d228b",
  "rgb": {
    "r": 61,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 255.429,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35979,
    "c": 0.16171,
    "h": 286.9
  },
  "luminance": 0.04
}

Semantic roles & 50–950 ramp

primary
#3D228B
secondary
#9EB850
accent
#E444BB
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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