#42507B#42507B

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

Color values

HEX#42507B
RGBrgb(66, 80, 123)
HSLhsl(225, 30%, 37%)
HSVhsv(225, 46%, 48%)
CMYKcmyk(46.3%, 35%, 0%, 51.8%)
CIE-LABlab(34.65, 6.92, -26.14)
CIE-LCHlch(34.65, 27.04, 284.83°)
OKLaboklab(43.91% -0.0006 -0.0734)
OKLCHoklch(43.91% 0.073 269.5)
XYZxyz(8.6895, 8.3252, 19.8841)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42507B #7B6D42
analogous
#426D7B #42507B #51427B
triadic
#42507B #7B4250 #507B42
tetradic
#42507B #7B426D #7B6D42 #427B51
square
#42507B #7B426D #7B6D42 #427B51
split-complementary
#42507B #7B5142 #6D7B42
monochromatic
#171C2B #2D3653 #42507B #576AA3 #7E8CBA

Accessibility & contrast

On white

7.88
#42507B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#42507B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42507B
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42507B#FFFFFF#000000##FFFFFF
##42507B1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41547D
Deuteranopia (green-blind)
#3B4F7A
Tritanopia (blue-blind)
#2E5960
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #42507b;
/* rgb */ color: rgb(66, 80, 123);
/* oklch */ color: oklch(43.9% 0.073 269.5);
Tailwind
colors: {
  custom: {
    50: '#7980a1',
    500: '#42507b',
    950: '#000000',
  },
}
SCSS
$custom: #42507b;
$custom-light: #7980a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42507b",
  "rgb": {
    "r": 66,
    "g": 80,
    "b": 123
  },
  "hsl": {
    "h": 225.263,
    "s": 30.159,
    "l": 37.059
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.07339,
    "h": 269.5
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#42507B
secondary
#A59974
accent
#AE61C6
background
#F7F7F9
surface
#EEEEF2
border
#C9C9CC
text
#090A0F
muted
#7B7C7E

Preview Lab

Preview with #42507B

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

Preview Lab → · Contrast checker → · Palette generator →

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