#42579E#42579E

#42579E is a mid, moderate blue. Relative luminance 0.104; OKLCH L 47.6% C 0.117 H 269.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#42579E
RGBrgb(66, 87, 158)
HSLhsl(226, 41%, 44%)
HSVhsv(226, 58%, 62%)
CMYKcmyk(58.2%, 44.9%, 0%, 38%)
CIE-LABlab(38.62, 14.15, -41.15)
CIE-LCHlch(38.62, 43.52, 288.98°)
OKLaboklab(47.6% -0.0016 -0.1172)
OKLCHoklch(47.6% 0.117 269.2)
XYZxyz(11.8245, 10.4423, 33.7336)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42579E #9E8942
analogous
#42859E #42579E #5B429E
triadic
#42579E #9E4257 #579E42
tetradic
#42579E #9E4285 #9E8942 #429E5B
square
#42579E #9E4285 #9E8942 #429E5B
split-complementary
#42579E #9E5B42 #859E42
monochromatic
#1E2748 #303F73 #42579E #6076BD #8C9BCF

Accessibility & contrast

On white

6.80
#42579E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#42579E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42579E
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42579E#FFFFFF#000000##FFFFFF
##42579E1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375FA1
Deuteranopia (green-blind)
#2B579C
Tritanopia (blue-blind)
#006773
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #42579e;
/* rgb */ color: rgb(66, 87, 158);
/* oklch */ color: oklch(47.6% 0.117 269.2);
Tailwind
colors: {
  custom: {
    50: '#7e86bb',
    500: '#42579e',
    950: '#000000',
  },
}
SCSS
$custom: #42579e;
$custom-light: #7e86bb;
$custom-dark: #000000;
JSON
{
  "hex": "#42579e",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 158
  },
  "hsl": {
    "h": 226.304,
    "s": 41.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.476,
    "c": 0.11718,
    "h": 269.2
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42579E

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

Preview Lab → · Contrast checker → · Palette generator →

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