#42407B#42407B

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

Color values

HEX#42407B
RGBrgb(66, 64, 123)
HSLhsl(242, 32%, 37%)
HSVhsv(242, 48%, 48%)
CMYKcmyk(46.3%, 48%, 0%, 51.8%)
CIE-LABlab(30.05, 17.44, -33.42)
CIE-LCHlch(30.05, 37.70, 297.56°)
OKLaboklab(40.38% 0.0213 -0.0947)
OKLCHoklch(40.38% 0.097 282.7)
XYZxyz(7.6543, 6.2548, 19.5390)
Luminance0.0625 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42407B #797B40
analogous
#405C7B #42407B #60407B
triadic
#42407B #7B4240 #407B42
tetradic
#42407B #7B405C #797B40 #407B60
square
#42407B #7B405C #797B40 #407B60
split-complementary
#42407B #7B6040 #5C7B40
monochromatic
#17162A #2C2B53 #42407B #5855A3 #7D7BBA

Accessibility & contrast

On white

9.33
#42407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#42407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42407B
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42407B#FFFFFF#000000##FFFFFF
##42407B1.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28497D
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#304C57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42407b;
/* rgb */ color: rgb(66, 64, 123);
/* oklch */ color: oklch(40.4% 0.097 282.7);
Tailwind
colors: {
  custom: {
    50: '#7a74a1',
    500: '#42407b',
    950: '#000000',
  },
}
SCSS
$custom: #42407b;
$custom-light: #7a74a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42407b",
  "rgb": {
    "r": 66,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 242.034,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4038,
    "c": 0.09707,
    "h": 282.7
  },
  "luminance": 0.06255
}

Semantic roles & 50–950 ramp

primary
#42407B
secondary
#A3A572
accent
#C860C4
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42407B

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

Preview Lab → · Contrast checker → · Palette generator →

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