#42479B#42479B

#42479B is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.1% C 0.135 H 276.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#42479B
RGBrgb(66, 71, 155)
HSLhsl(237, 40%, 43%)
HSVhsv(237, 57%, 61%)
CMYKcmyk(57.4%, 54.2%, 0%, 39.2%)
CIE-LABlab(34.05, 23.54, -46.69)
CIE-LCHlch(34.05, 52.29, 296.76°)
OKLaboklab(44.07% 0.0159 -0.1336)
OKLCHoklch(44.07% 0.135 276.8)
XYZxyz(10.4145, 8.0306, 32.0052)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42479B #9B9642
analogous
#42739B #42479B #69429B
triadic
#42479B #9B4247 #479B42
tetradic
#42479B #9B4273 #9B9642 #429B69
square
#42479B #9B4273 #9B9642 #429B69
split-complementary
#42479B #9B6942 #739B42
monochromatic
#1D2045 #303370 #42479B #5F64BB #8A8ECD

Accessibility & contrast

On white

8.06
#42479B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42479B
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42479B#FFFFFF#000000##FFFFFF
##42479B1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15549E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#0F5A6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42479b;
/* rgb */ color: rgb(66, 71, 155);
/* oklch */ color: oklch(44.1% 0.135 276.8);
Tailwind
colors: {
  custom: {
    50: '#7e7ab9',
    500: '#42479b',
    950: '#000000',
  },
}
SCSS
$custom: #42479b;
$custom-light: #7e7ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#42479b",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 155
  },
  "hsl": {
    "h": 236.629,
    "s": 40.271,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44069,
    "c": 0.13458,
    "h": 276.8
  },
  "luminance": 0.08031
}

Semantic roles & 50–950 ramp

primary
#42479B
secondary
#B8B581
accent
#C958D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0B0911
muted
#7C7B80

Preview Lab

Preview with #42479B

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

Preview Lab → · Contrast checker → · Palette generator →

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