#3D237F#3D237F

#3D237F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.146 H 289.7°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#3D237F
RGBrgb(61, 35, 127)
HSLhsl(257, 57%, 32%)
HSVhsv(257, 72%, 50%)
CMYKcmyk(52%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.74, 35.94, -47.75)
CIE-LCHlch(22.74, 59.76, 306.96°)
OKLaboklab(34.98% 0.049 -0.137)
OKLCHoklch(34.98% 0.146 289.7)
XYZxyz(6.3552, 3.7262, 20.4589)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D237F #657F23
analogous
#23377F #3D237F #6B237F
triadic
#3D237F #7F3D23 #237F3D
tetradic
#3D237F #7F2337 #657F23 #237F6B
square
#3D237F #7F2337 #657F23 #237F6B
split-complementary
#3D237F #7F6B23 #377F23
monochromatic
#0F091F #26164F #3D237F #5430AF #724ECE

Accessibility & contrast

On white

12.03
#3D237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#3D237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D237F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D237F#FFFFFF#000000##FFFFFF
##3D237F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#263B4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d237f;
/* rgb */ color: rgb(61, 35, 127);
/* oklch */ color: oklch(35.0% 0.146 289.7);
Tailwind
colors: {
  custom: {
    50: '#7a60a5',
    500: '#3d237f',
    950: '#000000',
  },
}
SCSS
$custom: #3d237f;
$custom-light: #7a60a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3d237f",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 256.957,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34978,
    "c": 0.14553,
    "h": 289.7
  },
  "luminance": 0.03726
}

Semantic roles & 50–950 ramp

primary
#3D237F
secondary
#95B14C
accent
#E048B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D237F

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

Preview Lab → · Contrast checker → · Palette generator →

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