#42386D#42386D

#42386D is a dark, moderate violet. Relative luminance 0.051; OKLCH L 37.8% C 0.088 H 290.2°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#42386D
RGBrgb(66, 56, 109)
HSLhsl(251, 32%, 32%)
HSVhsv(251, 49%, 43%)
CMYKcmyk(39.4%, 48.6%, 0%, 57.3%)
CIE-LABlab(26.99, 18.32, -29.42)
CIE-LCHlch(26.99, 34.66, 301.92°)
OKLaboklab(37.8% 0.0305 -0.083)
OKLCHoklch(37.8% 0.088 290.2)
XYZxyz(6.4205, 5.0906, 15.1093)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42386D #636D38
analogous
#38486D #42386D #5D386D
triadic
#42386D #6D4238 #386D42
tetradic
#42386D #6D3848 #636D38 #386D5D
square
#42386D #6D3848 #636D38 #386D5D
split-complementary
#42386D #6D5D38 #486D38
monochromatic
#110E1C #2A2345 #42386D #5A4D95 #796CB3

Accessibility & contrast

On white

10.41
#42386D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#42386D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42386D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42386D#FFFFFF#000000##FFFFFF
##42386D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25416F
Deuteranopia (green-blind)
#263F6C
Tritanopia (blue-blind)
#37424D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42386d;
/* rgb */ color: rgb(66, 56, 109);
/* oklch */ color: oklch(37.8% 0.088 290.2);
Tailwind
colors: {
  custom: {
    50: '#796e97',
    500: '#42386d',
    950: '#000000',
  },
}
SCSS
$custom: #42386d;
$custom-light: #796e97;
$custom-dark: #000000;
JSON
{
  "hex": "#42386d",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 109
  },
  "hsl": {
    "h": 251.321,
    "s": 32.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37796,
    "c": 0.08845,
    "h": 290.2
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#42386D
secondary
#929D64
accent
#C860B5
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070D
muted
#7B7A7E

Preview Lab

Preview with #42386D

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

Preview Lab → · Contrast checker → · Palette generator →

#42386D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva