#42517A#42517A

#42517A is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.1% C 0.071 H 268.1°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#42517A
RGBrgb(66, 81, 122)
HSLhsl(224, 30%, 37%)
HSVhsv(224, 46%, 48%)
CMYKcmyk(45.9%, 33.6%, 0%, 52.2%)
CIE-LABlab(34.90, 5.95, -25.13)
CIE-LCHlch(34.90, 25.83, 283.33°)
OKLaboklab(44.08% -0.0023 -0.0705)
OKLCHoklch(44.08% 0.071 268.1)
XYZxyz(8.7009, 8.4478, 19.5807)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42517A #7A6B42
analogous
#426D7A #42517A #4F427A
triadic
#42517A #7A4251 #517A42
tetradic
#42517A #7A426D #7A6B42 #427A4F
square
#42517A #7A426D #7A6B42 #427A4F
split-complementary
#42517A #7A4F42 #6D7A42
monochromatic
#171C2B #2D3752 #42517A #576BA2 #7D8DB9

Accessibility & contrast

On white

7.81
#42517A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#42517A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42517A
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42517A#FFFFFF#000000##FFFFFF
##42517A1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#42557C
Deuteranopia (green-blind)
#3D5079
Tritanopia (blue-blind)
#2E5960
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #42517a;
/* rgb */ color: rgb(66, 81, 122);
/* oklch */ color: oklch(44.1% 0.071 268.1);
Tailwind
colors: {
  custom: {
    50: '#7981a0',
    500: '#42517a',
    950: '#000000',
  },
}
SCSS
$custom: #42517a;
$custom-light: #7981a0;
$custom-dark: #000000;
JSON
{
  "hex": "#42517a",
  "rgb": {
    "r": 66,
    "g": 81,
    "b": 122
  },
  "hsl": {
    "h": 223.929,
    "s": 29.787,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44082,
    "c": 0.07051,
    "h": 268.1
  },
  "luminance": 0.08448
}

Semantic roles & 50–950 ramp

primary
#42517A
secondary
#A49774
accent
#AB62C6
background
#F7F7F9
surface
#EEEEF2
border
#C9C9CC
text
#090A0F
muted
#7B7C7E

Preview Lab

Preview with #42517A

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

Preview Lab → · Contrast checker → · Palette generator →

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