#42417C#42417C

#42417C is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.7% C 0.097 H 281.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#42417C
RGBrgb(66, 65, 124)
HSLhsl(241, 31%, 37%)
HSVhsv(241, 48%, 49%)
CMYKcmyk(46.8%, 47.6%, 0%, 51.4%)
CIE-LABlab(30.38, 17.11, -33.51)
CIE-LCHlch(30.38, 37.62, 297.05°)
OKLaboklab(40.66% 0.0201 -0.0949)
OKLCHoklch(40.66% 0.097 281.9)
XYZxyz(7.7741, 6.3937, 19.8894)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42417C #7B7C41
analogous
#415E7C #42417C #60417C
triadic
#42417C #7C4241 #417C42
tetradic
#42417C #7C415E #7B7C41 #417C60
square
#42417C #7C415E #7B7C41 #417C60
split-complementary
#42417C #7C6041 #5E7C41
monochromatic
#17172C #2D2C54 #42417C #5756A4 #7E7DBB

Accessibility & contrast

On white

9.22
#42417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#42417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42417C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42417C#FFFFFF#000000##FFFFFF
##42417C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294A7E
Deuteranopia (green-blind)
#26457B
Tritanopia (blue-blind)
#2F4D58
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42417c;
/* rgb */ color: rgb(66, 65, 124);
/* oklch */ color: oklch(40.7% 0.097 281.9);
Tailwind
colors: {
  custom: {
    50: '#7a75a2',
    500: '#42417c',
    950: '#000000',
  },
}
SCSS
$custom: #42417c;
$custom-light: #7a75a2;
$custom-dark: #000000;
JSON
{
  "hex": "#42417c",
  "rgb": {
    "r": 66,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 241.017,
    "s": 31.217,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40656,
    "c": 0.09704,
    "h": 281.9
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#42417C
secondary
#A5A573
accent
#C760C6
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42417C

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

Preview Lab → · Contrast checker → · Palette generator →

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