#42497F#42497F

#42497F is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.6% C 0.090 H 276.3°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#42497F
RGBrgb(66, 73, 127)
HSLhsl(233, 32%, 38%)
HSVhsv(233, 48%, 50%)
CMYKcmyk(48%, 42.5%, 0%, 50.2%)
CIE-LABlab(32.82, 12.80, -31.50)
CIE-LCHlch(32.82, 34.00, 292.11°)
OKLaboklab(42.57% 0.0099 -0.089)
OKLCHoklch(42.57% 0.09 276.3)
XYZxyz(8.4589, 7.4552, 21.0678)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42497F #7F7842
analogous
#42677F #42497F #59427F
triadic
#42497F #7F4249 #497F42
tetradic
#42497F #7F4267 #7F7842 #427F59
square
#42497F #7F4267 #7F7842 #427F59
split-complementary
#42497F #7F5942 #677F42
monochromatic
#181B2E #2D3257 #42497F #5760A7 #7F86BC

Accessibility & contrast

On white

8.43
#42497F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42497F
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42497F#FFFFFF#000000##FFFFFF
##42497F1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345081
Deuteranopia (green-blind)
#2F4B7E
Tritanopia (blue-blind)
#2C545E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #42497f;
/* rgb */ color: rgb(66, 73, 127);
/* oklch */ color: oklch(42.6% 0.090 276.3);
Tailwind
colors: {
  custom: {
    50: '#7a7ba4',
    500: '#42497f',
    950: '#000000',
  },
}
SCSS
$custom: #42497f;
$custom-light: #7a7ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#42497f",
  "rgb": {
    "r": 66,
    "g": 73,
    "b": 127
  },
  "hsl": {
    "h": 233.115,
    "s": 31.606,
    "l": 37.843
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.08958,
    "h": 276.3
  },
  "luminance": 0.07456
}

Semantic roles & 50–950 ramp

primary
#42497F
secondary
#A7A275
accent
#BC60C8
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42497F

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

Preview Lab → · Contrast checker → · Palette generator →

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