#42378E#42378E

#42378E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.138 H 284.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#42378E
RGBrgb(66, 55, 142)
HSLhsl(248, 44%, 39%)
HSVhsv(248, 61%, 56%)
CMYKcmyk(53.5%, 61.3%, 0%, 44.3%)
CIE-LABlab(29.01, 29.52, -46.89)
CIE-LCHlch(29.01, 55.41, 302.19°)
OKLaboklab(40.03% 0.0334 -0.1343)
OKLCHoklch(40.03% 0.138 284)
XYZxyz(8.4940, 5.8432, 26.2662)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42378E #838E37
analogous
#37578E #42378E #6D378E
triadic
#42378E #8E4237 #378E42
tetradic
#42378E #8E3757 #838E37 #378E6D
square
#42378E #8E3757 #838E37 #378E6D
split-complementary
#42378E #8E6D37 #578E37
monochromatic
#191536 #2D2662 #42378E #5849B9 #8076CA

Accessibility & contrast

On white

9.68
#42378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42378E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42378E#FFFFFF#000000##FFFFFF
##42378E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#234B5D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42378e;
/* rgb */ color: rgb(66, 55, 142);
/* oklch */ color: oklch(40.0% 0.138 284.0);
Tailwind
colors: {
  custom: {
    50: '#7d6eb0',
    500: '#42378e',
    950: '#000000',
  },
}
SCSS
$custom: #42378e;
$custom-light: #7d6eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#42378e",
  "rgb": {
    "r": 66,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 247.586,
    "s": 44.162,
    "l": 38.627
  },
  "oklch": {
    "l": 0.4003,
    "c": 0.13843,
    "h": 284
  },
  "luminance": 0.05844
}

Semantic roles & 50–950 ramp

primary
#42378E
secondary
#AAB36E
accent
#D454C4
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #42378E

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

Preview Lab → · Contrast checker → · Palette generator →

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