#42407D#42407D

#42407D is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.5% C 0.100 H 282.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#42407D
RGBrgb(66, 64, 125)
HSLhsl(242, 32%, 37%)
HSVhsv(242, 49%, 49%)
CMYKcmyk(47.2%, 48.8%, 0%, 51%)
CIE-LABlab(30.17, 18.09, -34.47)
CIE-LCHlch(30.17, 38.93, 297.69°)
OKLaboklab(40.51% 0.0216 -0.0978)
OKLCHoklch(40.51% 0.1 282.4)
XYZxyz(7.7807, 6.3054, 20.2051)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42407D #7B7D40
analogous
#405D7D #42407D #61407D
triadic
#42407D #7D4240 #407D42
tetradic
#42407D #7D405D #7B7D40 #407D61
square
#42407D #7D405D #7B7D40 #407D61
split-complementary
#42407D #7D6140 #5D7D40
monochromatic
#17172C #2D2B55 #42407D #5755A5 #7E7CBC

Accessibility & contrast

On white

9.29
#42407D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42407D
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42407D#FFFFFF#000000##FFFFFF
##42407D1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497F
Deuteranopia (green-blind)
#24457C
Tritanopia (blue-blind)
#2E4D58
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42407d;
/* rgb */ color: rgb(66, 64, 125);
/* oklch */ color: oklch(40.5% 0.100 282.4);
Tailwind
colors: {
  custom: {
    50: '#7a74a3',
    500: '#42407d',
    950: '#000000',
  },
}
SCSS
$custom: #42407d;
$custom-light: #7a74a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42407d",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 125
  },
  "hsl": {
    "h": 241.967,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40513,
    "c": 0.10014,
    "h": 282.4
  },
  "luminance": 0.06306
}

Semantic roles & 50–950 ramp

primary
#42407D
secondary
#A5A673
accent
#C85FC5
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42407D

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

Preview Lab → · Contrast checker → · Palette generator →

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