#42417A#42417A

#42417A is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.5% C 0.094 H 282.2°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#42417A
RGBrgb(66, 65, 122)
HSLhsl(241, 30%, 37%)
HSVhsv(241, 47%, 48%)
CMYKcmyk(45.9%, 46.7%, 0%, 52.2%)
CIE-LABlab(30.26, 16.46, -32.45)
CIE-LCHlch(30.26, 36.38, 296.90°)
OKLaboklab(40.52% 0.0198 -0.0918)
OKLCHoklch(40.52% 0.094 282.2)
XYZxyz(7.6489, 6.3436, 19.2300)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42417A #797A41
analogous
#415D7A #42417A #5F417A
triadic
#42417A #7A4241 #417A42
tetradic
#42417A #7A415D #797A41 #417A5F
square
#42417A #7A415D #797A41 #417A5F
split-complementary
#42417A #7A5F41 #5D7A41
monochromatic
#17162A #2C2C52 #42417A #5856A2 #7D7CB9

Accessibility & contrast

On white

9.26
#42417A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#42417A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42417A
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42417A#FFFFFF#000000##FFFFFF
##42417A1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B497C
Deuteranopia (green-blind)
#284579
Tritanopia (blue-blind)
#304D57
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42417a;
/* rgb */ color: rgb(66, 65, 122);
/* oklch */ color: oklch(40.5% 0.094 282.2);
Tailwind
colors: {
  custom: {
    50: '#7a75a1',
    500: '#42417a',
    950: '#000000',
  },
}
SCSS
$custom: #42417a;
$custom-light: #7a75a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42417a",
  "rgb": {
    "r": 66,
    "g": 65,
    "b": 122
  },
  "hsl": {
    "h": 241.053,
    "s": 30.481,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40524,
    "c": 0.09395,
    "h": 282.2
  },
  "luminance": 0.06344
}

Semantic roles & 50–950 ramp

primary
#42417A
secondary
#A3A473
accent
#C761C5
background
#F7F7F9
surface
#EEEDF2
border
#C9C8CC
text
#09080F
muted
#7B7B7E

Preview Lab

Preview with #42417A

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

Preview Lab → · Contrast checker → · Palette generator →

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