#3D238C#3D238C

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

Color values

HEX#3D238C
RGBrgb(61, 35, 140)
HSLhsl(255, 60%, 34%)
HSVhsv(255, 75%, 55%)
CMYKcmyk(56.4%, 75%, 0%, 45.1%)
CIE-LABlab(23.96, 39.89, -53.92)
CIE-LCHlch(23.96, 67.07, 306.50°)
OKLaboklab(36.21% 0.0461 -0.1551)
OKLCHoklch(36.21% 0.162 286.5)
XYZxyz(7.2577, 4.0872, 25.2123)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D238C #728C23
analogous
#233E8C #3D238C #72238C
triadic
#3D238C #8C3D23 #238C3D
tetradic
#3D238C #8C233E #728C23 #238C72
square
#3D238C #8C233E #728C23 #238C72
split-complementary
#3D238C #8C7223 #3E8C23
monochromatic
#120B2A #28175B #3D238C #522FBD #7555D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3D238C#FFFFFF#000000##FFFFFF
##3D238C1.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)
#003C8F
Deuteranopia (green-blind)
#00368A
Tritanopia (blue-blind)
#1A4055
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3d238c;
/* rgb */ color: rgb(61, 35, 140);
/* oklch */ color: oklch(36.2% 0.162 286.5);
Tailwind
colors: {
  custom: {
    50: '#7c61af',
    500: '#3d238c',
    950: '#000000',
  },
}
SCSS
$custom: #3d238c;
$custom-light: #7c61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3d238c",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 254.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.16183,
    "h": 286.5
  },
  "luminance": 0.04088
}

Semantic roles & 50–950 ramp

primary
#3D238C
secondary
#9FB852
accent
#E345BC
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3D238C

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

Preview Lab → · Contrast checker → · Palette generator →

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