#42397D#42397D

#42397D is a dark, moderate blue. Relative luminance 0.056; OKLCH L 39.1% C 0.111 H 286.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#42397D
RGBrgb(66, 57, 125)
HSLhsl(248, 37%, 36%)
HSVhsv(248, 54%, 49%)
CMYKcmyk(47.2%, 54.4%, 0%, 51%)
CIE-LABlab(28.29, 22.71, -37.49)
CIE-LCHlch(28.29, 43.83, 301.21°)
OKLaboklab(39.1% 0.0308 -0.1067)
OKLCHoklch(39.1% 0.111 286.1)
XYZxyz(7.4105, 5.5649, 20.0817)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42397D #747D39
analogous
#39527D #42397D #64397D
triadic
#42397D #7D4239 #397D42
tetradic
#42397D #7D3952 #747D39 #397D64
square
#42397D #7D3952 #747D39 #397D64
split-complementary
#42397D #7D6439 #527D39
monochromatic
#161329 #2C2653 #42397D #584CA7 #7C72BF

Accessibility & contrast

On white

9.94
#42397D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#42397D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42397D
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42397D#FFFFFF#000000##FFFFFF
##42397D1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18457F
Deuteranopia (green-blind)
#17417C
Tritanopia (blue-blind)
#2F4855
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #42397d;
/* rgb */ color: rgb(66, 57, 125);
/* oklch */ color: oklch(39.1% 0.111 286.1);
Tailwind
colors: {
  custom: {
    50: '#7b6fa3',
    500: '#42397d',
    950: '#000000',
  },
}
SCSS
$custom: #42397d;
$custom-light: #7b6fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42397d",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 125
  },
  "hsl": {
    "h": 247.941,
    "s": 37.363,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39099,
    "c": 0.11103,
    "h": 286.1
  },
  "luminance": 0.05565
}

Semantic roles & 50–950 ramp

primary
#42397D
secondary
#A0A86A
accent
#CD5ABE
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #42397D

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

Preview Lab → · Contrast checker → · Palette generator →

#42397D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva