#42407C#42407C

#42407C is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.4% C 0.099 H 282.6°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#42407C
RGBrgb(66, 64, 124)
HSLhsl(242, 32%, 37%)
HSVhsv(242, 48%, 49%)
CMYKcmyk(46.8%, 48.4%, 0%, 51.4%)
CIE-LABlab(30.11, 17.77, -33.95)
CIE-LCHlch(30.11, 38.32, 297.63°)
OKLaboklab(40.45% 0.0214 -0.0962)
OKLCHoklch(40.45% 0.099 282.6)
XYZxyz(7.7172, 6.2799, 19.8704)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42407C #7A7C40
analogous
#405C7C #42407C #60407C
triadic
#42407C #7C4240 #407C42
tetradic
#42407C #7C405C #7A7C40 #407C60
square
#42407C #7C405C #7A7C40 #407C60
split-complementary
#42407C #7C6040 #5C7C40
monochromatic
#17162B #2D2B54 #42407C #5755A4 #7D7BBB

Accessibility & contrast

On white

9.31
#42407C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#42407C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42407C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42407C#FFFFFF#000000##FFFFFF
##42407C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497E
Deuteranopia (green-blind)
#25457B
Tritanopia (blue-blind)
#2F4C58
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42407c;
/* rgb */ color: rgb(66, 64, 124);
/* oklch */ color: oklch(40.4% 0.099 282.6);
Tailwind
colors: {
  custom: {
    50: '#7a74a2',
    500: '#42407c',
    950: '#000000',
  },
}
SCSS
$custom: #42407c;
$custom-light: #7a74a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42407c",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 124
  },
  "hsl": {
    "h": 242,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40446,
    "c": 0.0986,
    "h": 282.6
  },
  "luminance": 0.0628
}

Semantic roles & 50–950 ramp

primary
#42407C
secondary
#A4A672
accent
#C860C5
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42407C

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

Preview Lab → · Contrast checker → · Palette generator →

#42407C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva