#3D237D#3D237D

#3D237D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.143 H 290.2°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#3D237D
RGBrgb(61, 35, 125)
HSLhsl(257, 56%, 31%)
HSVhsv(257, 72%, 49%)
CMYKcmyk(51.2%, 72%, 0%, 51%)
CIE-LABlab(22.57, 35.33, -46.78)
CIE-LCHlch(22.57, 58.62, 307.06°)
OKLaboklab(34.79% 0.0494 -0.1342)
OKLCHoklch(34.79% 0.143 290.2)
XYZxyz(6.2261, 3.6746, 19.7793)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D237D #637D23
analogous
#23367D #3D237D #6A237D
triadic
#3D237D #7D3D23 #237D3D
tetradic
#3D237D #7D2336 #637D23 #237D6A
square
#3D237D #7D2336 #637D23 #237D6A
split-complementary
#3D237D #7D6A23 #367D23
monochromatic
#0E081D #26164D #3D237D #5430AD #724DCD

Accessibility & contrast

On white

12.10
#3D237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3D237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D237D
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D237D#FFFFFF#000000##FFFFFF
##3D237D1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#273A4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3d237d;
/* rgb */ color: rgb(61, 35, 125);
/* oklch */ color: oklch(34.8% 0.143 290.2);
Tailwind
colors: {
  custom: {
    50: '#7960a3',
    500: '#3d237d',
    950: '#000000',
  },
}
SCSS
$custom: #3d237d;
$custom-light: #7960a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3d237d",
  "rgb": {
    "r": 61,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 257.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34794,
    "c": 0.14298,
    "h": 290.2
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#3D237D
secondary
#93AF4C
accent
#E048B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3D237D

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

Preview Lab → · Contrast checker → · Palette generator →

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