#42517D#42517D

#42517D is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.2% C 0.075 H 268.9°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#42517D
RGBrgb(66, 81, 125)
HSLhsl(225, 31%, 37%)
HSVhsv(225, 47%, 49%)
CMYKcmyk(47.2%, 35.2%, 0%, 51%)
CIE-LABlab(35.05, 6.92, -26.75)
CIE-LCHlch(35.05, 27.63, 284.50°)
OKLaboklab(44.25% -0.0015 -0.0752)
OKLCHoklch(44.25% 0.075 268.9)
XYZxyz(8.8897, 8.5233, 20.5748)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42517D #7D6E42
analogous
#426E7D #42517D #51427D
triadic
#42517D #7D4251 #517D42
tetradic
#42517D #7D426E #7D6E42 #427D51
square
#42517D #7D426E #7D6E42 #427D51
split-complementary
#42517D #7D5142 #6E7D42
monochromatic
#181D2D #2D3755 #42517D #576BA5 #7E8EBB

Accessibility & contrast

On white

7.76
#42517D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#42517D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42517D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42517D#FFFFFF#000000##FFFFFF
##42517D1.007.762.707.76
#FFFFFF7.761.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41557F
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#2C5A61
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #42517d;
/* rgb */ color: rgb(66, 81, 125);
/* oklch */ color: oklch(44.2% 0.075 268.9);
Tailwind
colors: {
  custom: {
    50: '#7a81a3',
    500: '#42517d',
    950: '#000000',
  },
}
SCSS
$custom: #42517d;
$custom-light: #7a81a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42517d",
  "rgb": {
    "r": 66,
    "g": 81,
    "b": 125
  },
  "hsl": {
    "h": 224.746,
    "s": 30.89,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44249,
    "c": 0.07517,
    "h": 268.9
  },
  "luminance": 0.08524
}

Semantic roles & 50–950 ramp

primary
#42517D
secondary
#A69975
accent
#AD61C7
background
#F7F7FA
surface
#EEEEF3
border
#C9C9CD
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #42517D

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

Preview Lab → · Contrast checker → · Palette generator →

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