#42417E#42417E

#42417E is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.8% C 0.100 H 281.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#42417E
RGBrgb(66, 65, 126)
HSLhsl(241, 32%, 37%)
HSVhsv(241, 48%, 49%)
CMYKcmyk(47.6%, 48.4%, 0%, 50.6%)
CIE-LABlab(30.51, 17.76, -34.56)
CIE-LCHlch(30.51, 38.85, 297.19°)
OKLaboklab(40.79% 0.0204 -0.098)
OKLCHoklch(40.79% 0.1 281.7)
XYZxyz(7.9018, 6.4448, 20.5622)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42417E #7D7E41
analogous
#415E7E #42417E #61417E
triadic
#42417E #7E4241 #417E42
tetradic
#42417E #7E415E #7D7E41 #417E61
square
#42417E #7E415E #7D7E41 #417E61
split-complementary
#42417E #7E6141 #5E7E41
monochromatic
#18172D #2D2C56 #42417E #5756A6 #7E7DBC

Accessibility & contrast

On white

9.17
#42417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#42417E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42417E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42417E#FFFFFF#000000##FFFFFF
##42417E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284A80
Deuteranopia (green-blind)
#24467D
Tritanopia (blue-blind)
#2E4E59
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42417e;
/* rgb */ color: rgb(66, 65, 126);
/* oklch */ color: oklch(40.8% 0.100 281.7);
Tailwind
colors: {
  custom: {
    50: '#7a75a4',
    500: '#42417e',
    950: '#000000',
  },
}
SCSS
$custom: #42417e;
$custom-light: #7a75a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42417e",
  "rgb": {
    "r": 66,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 240.984,
    "s": 31.937,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40789,
    "c": 0.10013,
    "h": 281.7
  },
  "luminance": 0.06445
}

Semantic roles & 50–950 ramp

primary
#42417E
secondary
#A6A774
accent
#C860C6
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42417E

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

Preview Lab → · Contrast checker → · Palette generator →

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