#42397B#42397B

#42397B is a dark, moderate blue. Relative luminance 0.055; OKLCH L 39.0% C 0.108 H 286.5°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#42397B
RGBrgb(66, 57, 123)
HSLhsl(248, 37%, 35%)
HSVhsv(248, 54%, 48%)
CMYKcmyk(46.3%, 53.7%, 0%, 51.8%)
CIE-LABlab(28.15, 22.07, -36.45)
CIE-LCHlch(28.15, 42.61, 301.19°)
OKLaboklab(38.96% 0.0307 -0.1036)
OKLCHoklch(38.96% 0.108 286.5)
XYZxyz(7.2840, 5.5143, 19.4156)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42397B #727B39
analogous
#39517B #42397B #63397B
triadic
#42397B #7B4239 #397B42
tetradic
#42397B #7B3951 #727B39 #397B63
square
#42397B #7B3951 #727B39 #397B63
split-complementary
#42397B #7B6339 #517B39
monochromatic
#151227 #2C2651 #42397B #584CA5 #7C71BD

Accessibility & contrast

On white

9.99
#42397B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#42397B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42397B
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42397B#FFFFFF#000000##FFFFFF
##42397B1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B447D
Deuteranopia (green-blind)
#1A417A
Tritanopia (blue-blind)
#304754
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #42397b;
/* rgb */ color: rgb(66, 57, 123);
/* oklch */ color: oklch(39.0% 0.108 286.5);
Tailwind
colors: {
  custom: {
    50: '#7a6fa2',
    500: '#42397b',
    950: '#000000',
  },
}
SCSS
$custom: #42397b;
$custom-light: #7a6fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#42397b",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 123
  },
  "hsl": {
    "h": 248.182,
    "s": 36.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38956,
    "c": 0.10805,
    "h": 286.5
  },
  "luminance": 0.05515
}

Semantic roles & 50–950 ramp

primary
#42397B
secondary
#9EA669
accent
#CD5BBD
background
#F7F6FA
surface
#EEECF3
border
#C9C7CD
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #42397B

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

Preview Lab → · Contrast checker → · Palette generator →

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