#42579D#42579D

#42579D is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.5% C 0.116 H 269.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#42579D
RGBrgb(66, 87, 157)
HSLhsl(226, 41%, 44%)
HSVhsv(226, 58%, 62%)
CMYKcmyk(58%, 44.6%, 0%, 38.4%)
CIE-LABlab(38.57, 13.80, -40.65)
CIE-LCHlch(38.57, 42.93, 288.76°)
OKLaboklab(47.54% -0.0018 -0.1157)
OKLCHoklch(47.54% 0.116 269.1)
XYZxyz(11.7387, 10.4081, 33.2821)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42579D #9D8842
analogous
#42849D #42579D #5A429D
triadic
#42579D #9D4257 #579D42
tetradic
#42579D #9D4284 #9D8842 #429D5A
square
#42579D #9D4284 #9D8842 #429D5A
split-complementary
#42579D #9D5A42 #849D42
monochromatic
#1E2747 #303F72 #42579D #6075BC #8B9BCE

Accessibility & contrast

On white

6.81
#42579D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#42579D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42579D
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42579D#FFFFFF#000000##FFFFFF
##42579D1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385FA0
Deuteranopia (green-blind)
#2C579C
Tritanopia (blue-blind)
#036672
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #42579d;
/* rgb */ color: rgb(66, 87, 157);
/* oklch */ color: oklch(47.5% 0.116 269.1);
Tailwind
colors: {
  custom: {
    50: '#7e86ba',
    500: '#42579d',
    950: '#000000',
  },
}
SCSS
$custom: #42579d;
$custom-light: #7e86ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42579d",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 157
  },
  "hsl": {
    "h": 226.154,
    "s": 40.807,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47535,
    "c": 0.11571,
    "h": 269.1
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#42579D
secondary
#B9AC82
accent
#B557D1
background
#F8F8FB
surface
#EFEFF6
border
#CACAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #42579D

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

Preview Lab → · Contrast checker → · Palette generator →

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