#42579A#42579A

#42579A is a mid, moderate blue. Relative luminance 0.103; OKLCH L 47.3% C 0.111 H 268.8°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#42579A
RGBrgb(66, 87, 154)
HSLhsl(226, 40%, 43%)
HSVhsv(226, 57%, 60%)
CMYKcmyk(57.1%, 43.5%, 0%, 39.6%)
CIE-LABlab(38.39, 12.77, -39.13)
CIE-LCHlch(38.39, 41.16, 288.07°)
OKLaboklab(47.34% -0.0024 -0.1112)
OKLCHoklch(47.34% 0.111 268.8)
XYZxyz(11.4858, 10.3069, 31.9498)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42579A #9A8542
analogous
#42839A #42579A #59429A
triadic
#42579A #9A4257 #579A42
tetradic
#42579A #9A4283 #9A8542 #429A59
square
#42579A #9A4283 #9A8542 #429A59
split-complementary
#42579A #9A5942 #839A42
monochromatic
#1D2744 #303F6F #42579A #5F75BA #8A9ACD

Accessibility & contrast

On white

6.86
#42579A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#42579A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #42579A
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42579A#FFFFFF#000000##FFFFFF
##42579A1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5F9D
Deuteranopia (green-blind)
#2F5799
Tritanopia (blue-blind)
#0B6671
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #42579a;
/* rgb */ color: rgb(66, 87, 154);
/* oklch */ color: oklch(47.3% 0.111 268.8);
Tailwind
colors: {
  custom: {
    50: '#7d86b8',
    500: '#42579a',
    950: '#000000',
  },
}
SCSS
$custom: #42579a;
$custom-light: #7d86b8;
$custom-dark: #000000;
JSON
{
  "hex": "#42579a",
  "rgb": {
    "r": 66,
    "g": 87,
    "b": 154
  },
  "hsl": {
    "h": 225.682,
    "s": 40,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47342,
    "c": 0.11128,
    "h": 268.8
  },
  "luminance": 0.10308
}

Semantic roles & 50–950 ramp

primary
#42579A
secondary
#B8AA80
accent
#B358D0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #42579A

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

Preview Lab → · Contrast checker → · Palette generator →

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