#42387F#42387F

#42387F is a dark, moderate blue. Relative luminance 0.055; OKLCH L 39.1% C 0.116 H 286.2°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#42387F
RGBrgb(66, 56, 127)
HSLhsl(248, 39%, 36%)
HSVhsv(248, 56%, 50%)
CMYKcmyk(48%, 55.9%, 0%, 50.2%)
CIE-LABlab(28.16, 24.01, -38.94)
CIE-LCHlch(28.16, 45.75, 301.66°)
OKLaboklab(39.05% 0.0322 -0.1109)
OKLCHoklch(39.05% 0.116 286.2)
XYZxyz(7.4906, 5.5186, 20.7451)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42387F #757F38
analogous
#38517F #42387F #65387F
triadic
#42387F #7F4238 #387F42
tetradic
#42387F #7F3851 #757F38 #387F65
square
#42387F #7F3851 #757F38 #387F65
split-complementary
#42387F #7F6538 #517F38
monochromatic
#16132A #2C2555 #42387F #584BA9 #7C71C0

Accessibility & contrast

On white

9.98
#42387F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#42387F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42387F
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42387F#FFFFFF#000000##FFFFFF
##42387F1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134481
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#2E4756
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42387f;
/* rgb */ color: rgb(66, 56, 127);
/* oklch */ color: oklch(39.1% 0.116 286.2);
Tailwind
colors: {
  custom: {
    50: '#7b6fa5',
    500: '#42387f',
    950: '#000000',
  },
}
SCSS
$custom: #42387f;
$custom-light: #7b6fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#42387f",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 127
  },
  "hsl": {
    "h": 248.451,
    "s": 38.798,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39052,
    "c": 0.11553,
    "h": 286.2
  },
  "luminance": 0.05519
}

Semantic roles & 50–950 ramp

primary
#42387F
secondary
#A0A969
accent
#CF59BE
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #42387F

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

Preview Lab → · Contrast checker → · Palette generator →

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