#42407E#42407E

#42407E is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.6% C 0.102 H 282.3°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#42407E
RGBrgb(66, 64, 126)
HSLhsl(242, 33%, 37%)
HSVhsv(242, 49%, 49%)
CMYKcmyk(47.6%, 49.2%, 0%, 50.6%)
CIE-LABlab(30.23, 18.42, -35.00)
CIE-LCHlch(30.23, 39.55, 297.76°)
OKLaboklab(40.58% 0.0217 -0.0993)
OKLCHoklch(40.58% 0.102 282.3)
XYZxyz(7.8449, 6.3310, 20.5433)
Luminance0.0633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42407E #7C7E40
analogous
#405D7E #42407E #61407E
triadic
#42407E #7E4240 #407E42
tetradic
#42407E #7E405D #7C7E40 #407E61
square
#42407E #7E405D #7C7E40 #407E61
split-complementary
#42407E #7E6140 #5D7E40
monochromatic
#17172D #2D2B55 #42407E #5755A7 #7E7CBC

Accessibility & contrast

On white

9.27
#42407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#42407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42407E
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42407E#FFFFFF#000000##FFFFFF
##42407E1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264980
Deuteranopia (green-blind)
#23457D
Tritanopia (blue-blind)
#2E4D59
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42407e;
/* rgb */ color: rgb(66, 64, 126);
/* oklch */ color: oklch(40.6% 0.102 282.3);
Tailwind
colors: {
  custom: {
    50: '#7a74a4',
    500: '#42407e',
    950: '#000000',
  },
}
SCSS
$custom: #42407e;
$custom-light: #7a74a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42407e",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 241.935,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40581,
    "c": 0.10167,
    "h": 282.3
  },
  "luminance": 0.06331
}

Semantic roles & 50–950 ramp

primary
#42407E
secondary
#A5A773
accent
#C95FC5
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42407E

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

Preview Lab → · Contrast checker → · Palette generator →

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