#42395F#42395F

#42395F is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.1% C 0.065 H 293.9°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#42395F
RGBrgb(66, 57, 95)
HSLhsl(254, 25%, 30%)
HSVhsv(254, 40%, 37%)
CMYKcmyk(30.5%, 40%, 0%, 62.7%)
CIE-LABlab(26.48, 13.47, -21.21)
CIE-LCHlch(26.48, 25.13, 302.41°)
OKLaboklab(37.15% 0.0262 -0.0591)
OKLCHoklch(37.15% 0.065 293.9)
XYZxyz(5.7749, 4.9106, 11.4678)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42395F #565F39
analogous
#39435F #42395F #55395F
triadic
#42395F #5F4239 #395F42
tetradic
#42395F #5F3943 #565F39 #395F55
square
#42395F #5F3943 #565F39 #395F55
split-complementary
#42395F #5F5539 #435F39
monochromatic
#0D0B13 #272239 #42395F #5D5085 #7A6CA7

Accessibility & contrast

On white

10.59
#42395F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42395F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42395F
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42395F#FFFFFF#000000##FFFFFF
##42395F1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3F60
Deuteranopia (green-blind)
#303E5E
Tritanopia (blue-blind)
#3C4047
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42395f;
/* rgb */ color: rgb(66, 57, 95);
/* oklch */ color: oklch(37.1% 0.065 293.9);
Tailwind
colors: {
  custom: {
    50: '#776f8c',
    500: '#42395f',
    950: '#000000',
  },
}
SCSS
$custom: #42395f;
$custom-light: #776f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#42395f",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 95
  },
  "hsl": {
    "h": 254.211,
    "s": 25,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37149,
    "c": 0.06469,
    "h": 293.9
  },
  "luminance": 0.04911
}

Semantic roles & 50–950 ramp

primary
#42395F
secondary
#858F65
accent
#C166AC
background
#F7F6F8
surface
#EDECF0
border
#C8C7CB
text
#09070C
muted
#7B7A7D

Preview Lab

Preview with #42395F

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

Preview Lab → · Contrast checker → · Palette generator →

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