#39255B#39255B

#39255B is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.094 H 298.0°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#39255B
RGBrgb(57, 37, 91)
HSLhsl(262, 42%, 25%)
HSVhsv(262, 59%, 36%)
CMYKcmyk(37.4%, 59.3%, 0%, 64.3%)
CIE-LABlab(19.84, 22.82, -29.17)
CIE-LCHlch(19.84, 37.04, 308.04°)
OKLaboklab(31.85% 0.0439 -0.0826)
OKLCHoklch(31.85% 0.094 298)
XYZxyz(4.2368, 2.9483, 10.2414)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#39255B #475B25
analogous
#252C5B #39255B #54255B
triadic
#39255B #5B3925 #255B39
tetradic
#39255B #5B252C #475B25 #255B54
square
#39255B #5B252C #475B25 #255B54
split-complementary
#39255B #5B5425 #2C5B25
monochromatic
#0E0916 #1E132F #39255B #543787 #7048B2

Accessibility & contrast

On white

13.21
#39255B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#39255B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #39255B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##39255B#FFFFFF#000000##FFFFFF
##39255B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305D
Deuteranopia (green-blind)
#142F5A
Tritanopia (blue-blind)
#31303C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #39255b;
/* rgb */ color: rgb(57, 37, 91);
/* oklch */ color: oklch(31.8% 0.094 298.0);
Tailwind
colors: {
  custom: {
    50: '#72608a',
    500: '#39255b',
    950: '#000000',
  },
}
SCSS
$custom: #39255b;
$custom-light: #72608a;
$custom-dark: #000000;
JSON
{
  "hex": "#39255b",
  "rgb": {
    "r": 57,
    "g": 37,
    "b": 91
  },
  "hsl": {
    "h": 262.222,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31848,
    "c": 0.09352,
    "h": 298
  },
  "luminance": 0.02948
}

Semantic roles & 50–950 ramp

primary
#39255B
secondary
#768E4D
accent
#D256A4
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050B
muted
#7B797C

Preview Lab

Preview with #39255B

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

Preview Lab → · Contrast checker → · Palette generator →

#39255B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva