#42427E#42427E

#42427E is a dark, moderate blue. Relative luminance 0.066; OKLCH L 41.0% C 0.099 H 281.1°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#42427E
RGBrgb(66, 66, 126)
HSLhsl(240, 31%, 38%)
HSVhsv(240, 48%, 49%)
CMYKcmyk(47.6%, 47.6%, 0%, 50.6%)
CIE-LABlab(30.79, 17.09, -34.12)
CIE-LCHlch(30.79, 38.16, 296.61°)
OKLaboklab(41% 0.0191 -0.0967)
OKLCHoklch(41% 0.099 281.1)
XYZxyz(7.9597, 6.5607, 20.5815)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42427E #7E7E42
analogous
#42607E #42427E #60427E
triadic
#42427E #7E4242 #427E42
tetradic
#42427E #7E4260 #7E7E42 #427E60
square
#42427E #7E4260 #7E7E42 #427E60
split-complementary
#42427E #7E6042 #607E42
monochromatic
#18182E #2D2D56 #42427E #5757A6 #7F7FBC

Accessibility & contrast

On white

9.08
#42427E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#42427E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42427E
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42427E#FFFFFF#000000##FFFFFF
##42427E1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B80
Deuteranopia (green-blind)
#26467D
Tritanopia (blue-blind)
#2E4F5A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42427e;
/* rgb */ color: rgb(66, 66, 126);
/* oklch */ color: oklch(41.0% 0.099 281.1);
Tailwind
colors: {
  custom: {
    50: '#7a76a4',
    500: '#42427e',
    950: '#000000',
  },
}
SCSS
$custom: #42427e;
$custom-light: #7a76a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42427e",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 31.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40999,
    "c": 0.09859,
    "h": 281.1
  },
  "luminance": 0.06561
}

Semantic roles & 50–950 ramp

primary
#42427E
secondary
#A7A775
accent
#C760C7
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42427E

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

Preview Lab → · Contrast checker → · Palette generator →

#42427E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva