#42497E#42497E

#42497E is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.5% C 0.088 H 276.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#42497E
RGBrgb(66, 73, 126)
HSLhsl(233, 31%, 38%)
HSVhsv(233, 48%, 49%)
CMYKcmyk(47.6%, 42.1%, 0%, 50.6%)
CIE-LABlab(32.76, 12.47, -30.97)
CIE-LCHlch(32.76, 33.39, 291.93°)
OKLaboklab(42.51% 0.0097 -0.0875)
OKLCHoklch(42.51% 0.088 276.3)
XYZxyz(8.3940, 7.4293, 20.7263)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42497E #7E7742
analogous
#42677E #42497E #59427E
triadic
#42497E #7E4249 #497E42
tetradic
#42497E #7E4267 #7E7742 #427E59
square
#42497E #7E4267 #7E7742 #427E59
split-complementary
#42497E #7E5942 #677E42
monochromatic
#181A2E #2D3256 #42497E #5760A6 #7F86BC

Accessibility & contrast

On white

8.45
#42497E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#42497E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42497E
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42497E#FFFFFF#000000##FFFFFF
##42497E1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355080
Deuteranopia (green-blind)
#304B7D
Tritanopia (blue-blind)
#2D545D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #42497e;
/* rgb */ color: rgb(66, 73, 126);
/* oklch */ color: oklch(42.5% 0.088 276.3);
Tailwind
colors: {
  custom: {
    50: '#7a7ba3',
    500: '#42497e',
    950: '#000000',
  },
}
SCSS
$custom: #42497e;
$custom-light: #7a7ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#42497e",
  "rgb": {
    "r": 66,
    "g": 73,
    "b": 126
  },
  "hsl": {
    "h": 233,
    "s": 31.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42507,
    "c": 0.08802,
    "h": 276.3
  },
  "luminance": 0.0743
}

Semantic roles & 50–950 ramp

primary
#42497E
secondary
#A7A175
accent
#BB60C7
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42497E

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

Preview Lab → · Contrast checker → · Palette generator →

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