#42457D#42457D

#42457D is a dark, moderate blue. Relative luminance 0.069; OKLCH L 41.6% C 0.092 H 279.2°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#42457D
RGBrgb(66, 69, 125)
HSLhsl(237, 31%, 37%)
HSVhsv(237, 47%, 49%)
CMYKcmyk(47.2%, 44.8%, 0%, 51%)
CIE-LABlab(31.57, 14.78, -32.25)
CIE-LCHlch(31.57, 35.48, 294.62°)
OKLaboklab(41.57% 0.0149 -0.0912)
OKLCHoklch(41.57% 0.092 279.2)
XYZxyz(8.0754, 6.8948, 20.3034)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42457D #7D7A42
analogous
#42637D #42457D #5C427D
triadic
#42457D #7D4245 #457D42
tetradic
#42457D #7D4263 #7D7A42 #427D5C
square
#42457D #7D4263 #7D7A42 #427D5C
split-complementary
#42457D #7D5C42 #637D42
monochromatic
#18192D #2D2F55 #42457D #575BA5 #7E81BB

Accessibility & contrast

On white

8.83
#42457D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#42457D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42457D
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42457D#FFFFFF#000000##FFFFFF
##42457D1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4D7F
Deuteranopia (green-blind)
#2B487C
Tritanopia (blue-blind)
#2E515B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #42457d;
/* rgb */ color: rgb(66, 69, 125);
/* oklch */ color: oklch(41.6% 0.092 279.2);
Tailwind
colors: {
  custom: {
    50: '#7a78a3',
    500: '#42457d',
    950: '#000000',
  },
}
SCSS
$custom: #42457d;
$custom-light: #7a78a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42457d",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 125
  },
  "hsl": {
    "h": 236.949,
    "s": 30.89,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41572,
    "c": 0.09245,
    "h": 279.2
  },
  "luminance": 0.06895
}

Semantic roles & 50–950 ramp

primary
#42457D
secondary
#A6A375
accent
#C261C7
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09090F
muted
#7B7B7F

Preview Lab

Preview with #42457D

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

Preview Lab → · Contrast checker → · Palette generator →

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