#42479E#42479E

#42479E is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.3% C 0.139 H 276.6°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#42479E
RGBrgb(66, 71, 158)
HSLhsl(237, 41%, 44%)
HSVhsv(237, 58%, 62%)
CMYKcmyk(58.2%, 55.1%, 0%, 38%)
CIE-LABlab(34.26, 24.57, -48.16)
CIE-LCHlch(34.26, 54.07, 297.03°)
OKLaboklab(44.29% 0.0161 -0.138)
OKLCHoklch(44.29% 0.139 276.6)
XYZxyz(10.6696, 8.1326, 33.3486)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42479E #9E9942
analogous
#42759E #42479E #6B429E
triadic
#42479E #9E4247 #479E42
tetradic
#42479E #9E4275 #9E9942 #429E6B
square
#42479E #9E4275 #9E9942 #429E6B
split-complementary
#42479E #9E6B42 #759E42
monochromatic
#1E2048 #303473 #42479E #6065BD #8C8FCF

Accessibility & contrast

On white

8.00
#42479E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#42479E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42479E
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42479E#FFFFFF#000000##FFFFFF
##42479E1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E54A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#085B6B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #42479e;
/* rgb */ color: rgb(66, 71, 158);
/* oklch */ color: oklch(44.3% 0.139 276.6);
Tailwind
colors: {
  custom: {
    50: '#7f7abb',
    500: '#42479e',
    950: '#000000',
  },
}
SCSS
$custom: #42479e;
$custom-light: #7f7abb;
$custom-dark: #000000;
JSON
{
  "hex": "#42479e",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 158
  },
  "hsl": {
    "h": 236.739,
    "s": 41.071,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44294,
    "c": 0.1389,
    "h": 276.6
  },
  "luminance": 0.08133
}

Semantic roles & 50–950 ramp

primary
#42479E
secondary
#BAB782
accent
#CA57D1
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #42479E

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

Preview Lab → · Contrast checker → · Palette generator →

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