#39257A#39257A

#39257A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.137 H 287.8°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#39257A
RGBrgb(57, 37, 122)
HSLhsl(254, 53%, 31%)
HSVhsv(254, 70%, 48%)
CMYKcmyk(53.3%, 69.7%, 0%, 52.2%)
CIE-LABlab(22.29, 32.47, -45.33)
CIE-LCHlch(22.29, 55.76, 305.61°)
OKLaboklab(34.42% 0.0417 -0.1301)
OKLCHoklch(34.42% 0.137 287.8)
XYZxyz(5.8607, 3.5979, 18.7942)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39257A #667A25
analogous
#253B7A #39257A #63257A
triadic
#39257A #7A3925 #257A39
tetradic
#39257A #7A253B #667A25 #257A63
square
#39257A #7A253B #667A25 #257A63
split-complementary
#39257A #7A6325 #3B7A25
monochromatic
#0D091C #23174B #39257A #4F33A9 #6C50CA

Accessibility & contrast

On white

12.21
#39257A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#39257A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39257A
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39257A#FFFFFF#000000##FFFFFF
##39257A1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#213A4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #39257a;
/* rgb */ color: rgb(57, 37, 122);
/* oklch */ color: oklch(34.4% 0.137 287.8);
Tailwind
colors: {
  custom: {
    50: '#7661a1',
    500: '#39257a',
    950: '#000000',
  },
}
SCSS
$custom: #39257a;
$custom-light: #7661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#39257a",
  "rgb": {
    "r": 57,
    "g": 37,
    "b": 122
  },
  "hsl": {
    "h": 254.118,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34415,
    "c": 0.13662,
    "h": 287.8
  },
  "luminance": 0.03598
}

Semantic roles & 50–950 ramp

primary
#39257A
secondary
#96AC4E
accent
#DD4BBB
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #39257A

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

Preview Lab → · Contrast checker → · Palette generator →

#39257A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva