#42479F#42479F

#42479F is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.140 H 276.6°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#42479F
RGBrgb(66, 71, 159)
HSLhsl(237, 41%, 44%)
HSVhsv(237, 58%, 62%)
CMYKcmyk(58.5%, 55.3%, 0%, 37.6%)
CIE-LABlab(34.33, 24.91, -48.65)
CIE-LCHlch(34.33, 54.66, 297.12°)
OKLaboklab(44.37% 0.0161 -0.1394)
OKLCHoklch(44.37% 0.14 276.6)
XYZxyz(10.7560, 8.1672, 33.8038)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42479F #9F9A42
analogous
#42769F #42479F #6C429F
triadic
#42479F #9F4247 #479F42
tetradic
#42479F #9F4276 #9F9A42 #429F6C
square
#42479F #9F4276 #9F9A42 #429F6C
split-complementary
#42479F #9F6C42 #769F42
monochromatic
#1E2049 #303474 #42479F #6166BD #8C90CF

Accessibility & contrast

On white

7.97
#42479F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42479F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42479F#FFFFFF#000000##FFFFFF
##42479F1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C55A2
Deuteranopia (green-blind)
#004D9D
Tritanopia (blue-blind)
#055B6C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #42479f;
/* rgb */ color: rgb(66, 71, 159);
/* oklch */ color: oklch(44.4% 0.140 276.6);
Tailwind
colors: {
  custom: {
    50: '#7f7abc',
    500: '#42479f',
    950: '#000000',
  },
}
SCSS
$custom: #42479f;
$custom-light: #7f7abc;
$custom-dark: #000000;
JSON
{
  "hex": "#42479f",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 159
  },
  "hsl": {
    "h": 236.774,
    "s": 41.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4437,
    "c": 0.14033,
    "h": 276.6
  },
  "luminance": 0.08168
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42479F

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

Preview Lab → · Contrast checker → · Palette generator →

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