#42458E#42458E

#42458E is a dark, moderate blue. Relative luminance 0.074; OKLCH L 42.7% C 0.118 H 278.4°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#42458E
RGBrgb(66, 69, 142)
HSLhsl(238, 37%, 41%)
HSVhsv(238, 54%, 56%)
CMYKcmyk(53.5%, 51.4%, 0%, 44.3%)
CIE-LABlab(32.63, 20.43, -41.06)
CIE-LCHlch(32.63, 45.86, 296.46°)
OKLaboklab(42.72% 0.0172 -0.1171)
OKLCHoklch(42.72% 0.118 278.4)
XYZxyz(9.2558, 7.3669, 26.5202)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42458E #8E8B42
analogous
#426B8E #42458E #65428E
triadic
#42458E #8E4245 #458E42
tetradic
#42458E #8E426B #8E8B42 #428E65
square
#42458E #8E426B #8E8B42 #428E65
split-complementary
#42458E #8E6542 #6B8E42
monochromatic
#1B1C3A #2F3164 #42458E #5B5EB3 #8487C6

Accessibility & contrast

On white

8.49
#42458E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#42458E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42458E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42458E#FFFFFF#000000##FFFFFF
##42458E1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215091
Deuteranopia (green-blind)
#194A8C
Tritanopia (blue-blind)
#215563
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #42458e;
/* rgb */ color: rgb(66, 69, 142);
/* oklch */ color: oklch(42.7% 0.118 278.4);
Tailwind
colors: {
  custom: {
    50: '#7c78af',
    500: '#42458e',
    950: '#000000',
  },
}
SCSS
$custom: #42458e;
$custom-light: #7c78af;
$custom-dark: #000000;
JSON
{
  "hex": "#42458e",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 142
  },
  "hsl": {
    "h": 237.632,
    "s": 36.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4272,
    "c": 0.11835,
    "h": 278.4
  },
  "luminance": 0.07367
}

Semantic roles & 50–950 ramp

primary
#42458E
secondary
#B1AF7B
accent
#C85BCD
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #42458E

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

Preview Lab → · Contrast checker → · Palette generator →

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