#42479C#42479C

#42479C is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.1% C 0.136 H 276.7°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#42479C
RGBrgb(66, 71, 156)
HSLhsl(237, 41%, 44%)
HSVhsv(237, 58%, 61%)
CMYKcmyk(57.7%, 54.5%, 0%, 38.8%)
CIE-LABlab(34.12, 23.88, -47.18)
CIE-LCHlch(34.12, 52.88, 296.85°)
OKLaboklab(44.14% 0.016 -0.1351)
OKLCHoklch(44.14% 0.136 276.7)
XYZxyz(10.4988, 8.0643, 32.4494)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42479C #9C9742
analogous
#42749C #42479C #6A429C
triadic
#42479C #9C4247 #479C42
tetradic
#42479C #9C4274 #9C9742 #429C6A
square
#42479C #9C4274 #9C9742 #429C6A
split-complementary
#42479C #9C6A42 #749C42
monochromatic
#1E2046 #303371 #42479C #6065BC #8B8ECE

Accessibility & contrast

On white

8.04
#42479C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#42479C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42479C
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42479C#FFFFFF#000000##FFFFFF
##42479C1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13549F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#0D5B6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42479c;
/* rgb */ color: rgb(66, 71, 156);
/* oklch */ color: oklch(44.1% 0.136 276.7);
Tailwind
colors: {
  custom: {
    50: '#7e7aba',
    500: '#42479c',
    950: '#000000',
  },
}
SCSS
$custom: #42479c;
$custom-light: #7e7aba;
$custom-dark: #000000;
JSON
{
  "hex": "#42479c",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 156
  },
  "hsl": {
    "h": 236.667,
    "s": 40.541,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44143,
    "c": 0.13602,
    "h": 276.7
  },
  "luminance": 0.08065
}

Semantic roles & 50–950 ramp

primary
#42479C
secondary
#B9B681
accent
#CA57D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #42479C

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

Preview Lab → · Contrast checker → · Palette generator →

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