#42479A#42479A

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

Color values

HEX#42479A
RGBrgb(66, 71, 154)
HSLhsl(237, 40%, 43%)
HSVhsv(237, 57%, 60%)
CMYKcmyk(57.1%, 53.9%, 0%, 39.6%)
CIE-LABlab(33.98, 23.20, -46.20)
CIE-LCHlch(33.98, 51.70, 296.67°)
OKLaboklab(43.99% 0.0159 -0.1322)
OKLCHoklch(43.99% 0.133 276.8)
XYZxyz(10.3309, 7.9971, 31.5648)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42479A #9A9542
analogous
#42739A #42479A #69429A
triadic
#42479A #9A4247 #479A42
tetradic
#42479A #9A4273 #9A9542 #429A69
square
#42479A #9A4273 #9A9542 #429A69
split-complementary
#42479A #9A6942 #739A42
monochromatic
#1D1F44 #30336F #42479A #5F64BA #8A8DCD

Accessibility & contrast

On white

8.08
#42479A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#42479A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42479A
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42479A#FFFFFF#000000##FFFFFF
##42479A1.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17549D
Deuteranopia (green-blind)
#024C98
Tritanopia (blue-blind)
#115A69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #42479a;
/* rgb */ color: rgb(66, 71, 154);
/* oklch */ color: oklch(44.0% 0.133 276.8);
Tailwind
colors: {
  custom: {
    50: '#7e7ab8',
    500: '#42479a',
    950: '#000000',
  },
}
SCSS
$custom: #42479a;
$custom-light: #7e7ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#42479a",
  "rgb": {
    "r": 66,
    "g": 71,
    "b": 154
  },
  "hsl": {
    "h": 236.591,
    "s": 40,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43994,
    "c": 0.13314,
    "h": 276.8
  },
  "luminance": 0.07998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42479A

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

Preview Lab → · Contrast checker → · Palette generator →

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