#39237F#39237F

#39237F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.146 H 287.1°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#39237F
RGBrgb(57, 35, 127)
HSLhsl(254, 57%, 32%)
HSVhsv(254, 72%, 50%)
CMYKcmyk(55.1%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.32, 35.23, -48.47)
CIE-LCHlch(22.32, 59.92, 306.01°)
OKLaboklab(34.57% 0.0428 -0.1393)
OKLCHoklch(34.57% 0.146 287.1)
XYZxyz(6.1180, 3.6039, 20.4478)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39237F #697F23
analogous
#233B7F #39237F #67237F
triadic
#39237F #7F3923 #237F39
tetradic
#39237F #7F233B #697F23 #237F67
square
#39237F #7F233B #697F23 #237F67
split-complementary
#39237F #7F6723 #3B7F23
monochromatic
#0E091F #23164F #39237F #4F30AF #6D4ECE

Accessibility & contrast

On white

12.20
#39237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#39237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39237F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39237F#FFFFFF#000000##FFFFFF
##39237F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#1D3B4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #39237f;
/* rgb */ color: rgb(57, 35, 127);
/* oklch */ color: oklch(34.6% 0.146 287.1);
Tailwind
colors: {
  custom: {
    50: '#7760a5',
    500: '#39237f',
    950: '#000000',
  },
}
SCSS
$custom: #39237f;
$custom-light: #7760a5;
$custom-dark: #000000;
JSON
{
  "hex": "#39237f",
  "rgb": {
    "r": 57,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 254.348,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3457,
    "c": 0.14574,
    "h": 287.1
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#39237F
secondary
#99B14C
accent
#E048BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39237F

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

Preview Lab → · Contrast checker → · Palette generator →

#39237F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva