#42378C#42378C

#42378C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.136 H 284.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#42378C
RGBrgb(66, 55, 140)
HSLhsl(248, 44%, 38%)
HSVhsv(248, 61%, 55%)
CMYKcmyk(52.9%, 60.7%, 0%, 45.1%)
CIE-LABlab(28.86, 28.87, -45.91)
CIE-LCHlch(28.86, 54.23, 302.16°)
OKLaboklab(39.87% 0.0335 -0.1314)
OKLCHoklch(39.87% 0.136 284.3)
XYZxyz(8.3452, 5.7836, 25.4825)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42378C #818C37
analogous
#37568C #42378C #6C378C
triadic
#42378C #8C4237 #378C42
tetradic
#42378C #8C3756 #818C37 #378C6C
square
#42378C #8C3756 #818C37 #378C6C
split-complementary
#42378C #8C6C37 #568C37
monochromatic
#191434 #2D2660 #42378C #5749B7 #8075C9

Accessibility & contrast

On white

9.74
#42378C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#42378C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42378C
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42378C#FFFFFF#000000##FFFFFF
##42378C1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#254B5C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42378c;
/* rgb */ color: rgb(66, 55, 140);
/* oklch */ color: oklch(39.9% 0.136 284.3);
Tailwind
colors: {
  custom: {
    50: '#7d6eae',
    500: '#42378c',
    950: '#000000',
  },
}
SCSS
$custom: #42378c;
$custom-light: #7d6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#42378c",
  "rgb": {
    "r": 66,
    "g": 55,
    "b": 140
  },
  "hsl": {
    "h": 247.765,
    "s": 43.59,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39868,
    "c": 0.13564,
    "h": 284.3
  },
  "luminance": 0.05784
}

Semantic roles & 50–950 ramp

primary
#42378C
secondary
#A9B16D
accent
#D354C3
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #42378C

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

Preview Lab → · Contrast checker → · Palette generator →

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