#42579F#42579F

#42579F is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.7% C 0.119 H 269.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#42579F
RGBrgb(66, 87, 159)
HSLhsl(226, 41%, 44%)
HSVhsv(226, 58%, 62%)
CMYKcmyk(58.5%, 45.3%, 0%, 37.6%)
CIE-LABlab(38.69, 14.50, -41.65)
CIE-LCHlch(38.69, 44.10, 289.19°)
OKLaboklab(47.67% -0.0015 -0.1186)
OKLCHoklch(47.67% 0.119 269.3)
XYZxyz(11.9109, 10.4769, 34.1887)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42579F #9F8A42
analogous
#42869F #42579F #5C429F
triadic
#42579F #9F4257 #579F42
tetradic
#42579F #9F4286 #9F8A42 #429F5C
square
#42579F #9F4286 #9F8A42 #429F5C
split-complementary
#42579F #9F5C42 #869F42
monochromatic
#1E2849 #303F74 #42579F #6176BD #8C9BCF

Accessibility & contrast

On white

6.78
#42579F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#42579F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42579F
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42579F#FFFFFF#000000##FFFFFF
##42579F1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42579f;
/* rgb */ color: rgb(66, 87, 159);
/* oklch */ color: oklch(47.7% 0.119 269.3);
Tailwind
colors: {
  custom: {
    50: '#7e86bc',
    500: '#42579f',
    950: '#000000',
  },
}
SCSS
$custom: #42579f;
$custom-light: #7e86bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42579f",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 159
  },
  "hsl": {
    "h": 226.452,
    "s": 41.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47666,
    "c": 0.11866,
    "h": 269.3
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42579F

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

Preview Lab → · Contrast checker → · Palette generator →

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