#42507D#42507D

#42507D is a dark, moderate blue. Relative luminance 0.084; OKLCH L 44.0% C 0.077 H 269.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#42507D
RGBrgb(66, 80, 125)
HSLhsl(226, 31%, 37%)
HSVhsv(226, 47%, 49%)
CMYKcmyk(47.2%, 36%, 0%, 51%)
CIE-LABlab(34.75, 7.57, -27.22)
CIE-LCHlch(34.75, 28.25, 285.54°)
OKLaboklab(44.02% -0.0001 -0.0765)
OKLCHoklch(44.02% 0.077 269.9)
XYZxyz(8.8159, 8.3757, 20.5502)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42507D #7D6F42
analogous
#426D7D #42507D #52427D
triadic
#42507D #7D4250 #507D42
tetradic
#42507D #7D426D #7D6F42 #427D52
square
#42507D #7D426D #7D6F42 #427D52
split-complementary
#42507D #7D5242 #6D7D42
monochromatic
#181D2D #2D3655 #42507D #576AA5 #7E8DBB

Accessibility & contrast

On white

7.85
#42507D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#42507D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42507D
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42507D#FFFFFF#000000##FFFFFF
##42507D1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547F
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#2C5960
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #42507d;
/* rgb */ color: rgb(66, 80, 125);
/* oklch */ color: oklch(44.0% 0.077 269.9);
Tailwind
colors: {
  custom: {
    50: '#7a80a3',
    500: '#42507d',
    950: '#000000',
  },
}
SCSS
$custom: #42507d;
$custom-light: #7a80a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42507d",
  "rgb": {
    "r": 66,
    "g": 80,
    "b": 125
  },
  "hsl": {
    "h": 225.763,
    "s": 30.89,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44019,
    "c": 0.07651,
    "h": 269.9
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#42507D
secondary
#A69A75
accent
#AF61C7
background
#F7F7FA
surface
#EEEEF3
border
#C9C9CD
text
#090A0F
muted
#7B7C7F

Preview Lab

Preview with #42507D

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

Preview Lab → · Contrast checker → · Palette generator →

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