#42507A#42507A

#42507A is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.9% C 0.072 H 269.3°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#42507A
RGBrgb(66, 80, 122)
HSLhsl(225, 30%, 37%)
HSVhsv(225, 46%, 48%)
CMYKcmyk(45.9%, 34.4%, 0%, 52.2%)
CIE-LABlab(34.60, 6.60, -25.60)
CIE-LCHlch(34.60, 26.44, 284.46°)
OKLaboklab(43.85% -0.0009 -0.0718)
OKLCHoklch(43.85% 0.072 269.3)
XYZxyz(8.6272, 8.3002, 19.5561)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42507A #7A6C42
analogous
#426C7A #42507A #50427A
triadic
#42507A #7A4250 #507A42
tetradic
#42507A #7A426C #7A6C42 #427A50
square
#42507A #7A426C #7A6C42 #427A50
split-complementary
#42507A #7A5042 #6C7A42
monochromatic
#171C2B #2D3652 #42507A #576AA2 #7D8CB9

Accessibility & contrast

On white

7.89
#42507A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#42507A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42507A
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42507A#FFFFFF#000000##FFFFFF
##42507A1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41547C
Deuteranopia (green-blind)
#3C4F79
Tritanopia (blue-blind)
#2E595F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #42507a;
/* rgb */ color: rgb(66, 80, 122);
/* oklch */ color: oklch(43.9% 0.072 269.3);
Tailwind
colors: {
  custom: {
    50: '#7980a0',
    500: '#42507a',
    950: '#000000',
  },
}
SCSS
$custom: #42507a;
$custom-light: #7980a0;
$custom-dark: #000000;
JSON
{
  "hex": "#42507a",
  "rgb": {
    "r": 66,
    "g": 80,
    "b": 122
  },
  "hsl": {
    "h": 225,
    "s": 29.787,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43851,
    "c": 0.07183,
    "h": 269.3
  },
  "luminance": 0.08301
}

Semantic roles & 50–950 ramp

primary
#42507A
secondary
#A49874
accent
#AD62C6
background
#F7F7F9
surface
#EEEEF2
border
#C9C9CC
text
#090A0F
muted
#7B7C7E

Preview Lab

Preview with #42507A

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

Preview Lab → · Contrast checker → · Palette generator →

#42507A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva