#42497C#42497C

#42497C is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.4% C 0.085 H 276.2°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#42497C
RGBrgb(66, 73, 124)
HSLhsl(233, 31%, 37%)
HSVhsv(233, 47%, 49%)
CMYKcmyk(46.8%, 41.1%, 0%, 51.4%)
CIE-LABlab(32.65, 11.82, -29.91)
CIE-LCHlch(32.65, 32.16, 291.56°)
OKLaboklab(42.38% 0.0092 -0.0844)
OKLCHoklch(42.38% 0.085 276.2)
XYZxyz(8.2663, 7.3781, 20.0534)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42497C #7C7542
analogous
#42667C #42497C #58427C
triadic
#42497C #7C4249 #497C42
tetradic
#42497C #7C4266 #7C7542 #427C58
square
#42497C #7C4266 #7C7542 #427C58
split-complementary
#42497C #7C5842 #667C42
monochromatic
#171A2C #2D3154 #42497C #5761A4 #7E85BA

Accessibility & contrast

On white

8.48
#42497C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#42497C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42497C
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42497C#FFFFFF#000000##FFFFFF
##42497C1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364F7E
Deuteranopia (green-blind)
#324B7B
Tritanopia (blue-blind)
#2E535C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #42497c;
/* rgb */ color: rgb(66, 73, 124);
/* oklch */ color: oklch(42.4% 0.085 276.2);
Tailwind
colors: {
  custom: {
    50: '#7a7ba2',
    500: '#42497c',
    950: '#000000',
  },
}
SCSS
$custom: #42497c;
$custom-light: #7a7ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#42497c",
  "rgb": {
    "r": 66,
    "g": 73,
    "b": 124
  },
  "hsl": {
    "h": 232.759,
    "s": 30.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42384,
    "c": 0.08488,
    "h": 276.2
  },
  "luminance": 0.07379
}

Semantic roles & 50–950 ramp

primary
#42497C
secondary
#A59F75
accent
#BA61C7
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42497C

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

Preview Lab → · Contrast checker → · Palette generator →

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