#42388E#42388E

#42388E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.137 H 283.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#42388E
RGBrgb(66, 56, 142)
HSLhsl(247, 43%, 39%)
HSVhsv(247, 61%, 56%)
CMYKcmyk(53.5%, 60.6%, 0%, 44.3%)
CIE-LABlab(29.26, 28.88, -46.50)
CIE-LCHlch(29.26, 54.74, 301.85°)
OKLaboklab(40.21% 0.0323 -0.1332)
OKLCHoklch(40.21% 0.137 283.6)
XYZxyz(8.5419, 5.9391, 26.2822)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42388E #848E38
analogous
#38598E #42388E #6D388E
triadic
#42388E #8E4238 #388E42
tetradic
#42388E #8E3859 #848E38 #388E6D
square
#42388E #8E3859 #848E38 #388E6D
split-complementary
#42388E #8E6D38 #598E38
monochromatic
#191536 #2E2762 #42388E #584BB8 #8177C9

Accessibility & contrast

On white

9.60
#42388E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#42388E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42388E
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42388E#FFFFFF#000000##FFFFFF
##42388E1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#234C5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42388e;
/* rgb */ color: rgb(66, 56, 142);
/* oklch */ color: oklch(40.2% 0.137 283.6);
Tailwind
colors: {
  custom: {
    50: '#7d6fb0',
    500: '#42388e',
    950: '#000000',
  },
}
SCSS
$custom: #42388e;
$custom-light: #7d6fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#42388e",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 142
  },
  "hsl": {
    "h": 246.977,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4021,
    "c": 0.13703,
    "h": 283.6
  },
  "luminance": 0.0594
}

Semantic roles & 50–950 ramp

primary
#42388E
secondary
#ABB26F
accent
#D355C4
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #42388E

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

Preview Lab → · Contrast checker → · Palette generator →

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