#42378F#42378F

#42378F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.140 H 283.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#42378F
RGBrgb(66, 55, 143)
HSLhsl(248, 44%, 39%)
HSVhsv(248, 62%, 56%)
CMYKcmyk(53.8%, 61.5%, 0%, 43.9%)
CIE-LABlab(29.09, 29.85, -47.38)
CIE-LCHlch(29.09, 56.00, 302.21°)
OKLaboklab(40.11% 0.0334 -0.1358)
OKLCHoklch(40.11% 0.14 283.8)
XYZxyz(8.5694, 5.8733, 26.6634)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42378F #848F37
analogous
#37588F #42378F #6E378F
triadic
#42378F #8F4237 #378F42
tetradic
#42378F #8F3758 #848F37 #378F6E
square
#42378F #8F3758 #848F37 #378F6E
split-complementary
#42378F #8F6E37 #588F37
monochromatic
#191537 #2E2663 #42378F #584AB9 #8176CA

Accessibility & contrast

On white

9.66
#42378F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#42378F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42378F
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42378F#FFFFFF#000000##FFFFFF
##42378F1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#224C5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42378f;
/* rgb */ color: rgb(66, 55, 143);
/* oklch */ color: oklch(40.1% 0.140 283.8);
Tailwind
colors: {
  custom: {
    50: '#7d6eb0',
    500: '#42378f',
    950: '#000000',
  },
}
SCSS
$custom: #42378f;
$custom-light: #7d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#42378f",
  "rgb": {
    "r": 66,
    "g": 55,
    "b": 143
  },
  "hsl": {
    "h": 247.5,
    "s": 44.444,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.13983,
    "h": 283.8
  },
  "luminance": 0.05874
}

Semantic roles & 50–950 ramp

primary
#42378F
secondary
#ABB36F
accent
#D454C4
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #42378F

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

Preview Lab → · Contrast checker → · Palette generator →

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