#42427B#42427B

#42427B is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.8% C 0.094 H 281.4°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#42427B
RGBrgb(66, 66, 123)
HSLhsl(240, 30%, 37%)
HSVhsv(240, 46%, 48%)
CMYKcmyk(46.3%, 46.3%, 0%, 51.8%)
CIE-LABlab(30.60, 16.12, -32.53)
CIE-LCHlch(30.60, 36.31, 296.36°)
OKLaboklab(40.8% 0.0186 -0.0921)
OKLCHoklch(40.8% 0.094 281.4)
XYZxyz(7.7691, 6.4844, 19.5773)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42427B #7B7B42
analogous
#425F7B #42427B #5F427B
triadic
#42427B #7B4242 #427B42
tetradic
#42427B #7B425F #7B7B42 #427B5F
square
#42427B #7B425F #7B7B42 #427B5F
split-complementary
#42427B #7B5F42 #5F7B42
monochromatic
#17172B #2D2D53 #42427B #5757A3 #7E7EBA

Accessibility & contrast

On white

9.14
#42427B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#42427B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42427B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42427B#FFFFFF#000000##FFFFFF
##42427B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4A7D
Deuteranopia (green-blind)
#29467A
Tritanopia (blue-blind)
#2F4E58
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42427b;
/* rgb */ color: rgb(66, 66, 123);
/* oklch */ color: oklch(40.8% 0.094 281.4);
Tailwind
colors: {
  custom: {
    50: '#7a76a1',
    500: '#42427b',
    950: '#000000',
  },
}
SCSS
$custom: #42427b;
$custom-light: #7a76a1;
$custom-dark: #000000;
JSON
{
  "hex": "#42427b",
  "rgb": {
    "r": 66,
    "g": 66,
    "b": 123
  },
  "hsl": {
    "h": 240,
    "s": 30.159,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40802,
    "c": 0.09395,
    "h": 281.4
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#42427B
secondary
#A5A574
accent
#C661C6
background
#F7F7FA
surface
#EEEDF3
border
#C9C8CD
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #42427B

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

Preview Lab → · Contrast checker → · Palette generator →

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