#42498E#42498E

#42498E is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.5% C 0.113 H 276.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#42498E
RGBrgb(66, 73, 142)
HSLhsl(234, 37%, 41%)
HSVhsv(234, 54%, 56%)
CMYKcmyk(53.5%, 48.6%, 0%, 44.3%)
CIE-LABlab(33.72, 17.80, -39.31)
CIE-LCHlch(33.72, 43.15, 294.37°)
OKLaboklab(43.55% 0.0124 -0.1119)
OKLCHoklch(43.55% 0.113 276.3)
XYZxyz(9.5103, 7.8757, 26.6050)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42498E #8E8742
analogous
#426F8E #42498E #61428E
triadic
#42498E #8E4249 #498E42
tetradic
#42498E #8E426F #8E8742 #428E61
square
#42498E #8E426F #8E8742 #428E61
split-complementary
#42498E #8E6142 #6F8E42
monochromatic
#1B1E3A #2F3464 #42498E #5B63B3 #848AC6

Accessibility & contrast

On white

8.15
#42498E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#42498E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42498E
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42498E#FFFFFF#000000##FFFFFF
##42498E1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5391
Deuteranopia (green-blind)
#224C8C
Tritanopia (blue-blind)
#215864
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #42498e;
/* rgb */ color: rgb(66, 73, 142);
/* oklch */ color: oklch(43.5% 0.113 276.3);
Tailwind
colors: {
  custom: {
    50: '#7c7baf',
    500: '#42498e',
    950: '#000000',
  },
}
SCSS
$custom: #42498e;
$custom-light: #7c7baf;
$custom-dark: #000000;
JSON
{
  "hex": "#42498e",
  "rgb": {
    "r": 66,
    "g": 73,
    "b": 142
  },
  "hsl": {
    "h": 234.474,
    "s": 36.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43547,
    "c": 0.11258,
    "h": 276.3
  },
  "luminance": 0.07876
}

Semantic roles & 50–950 ramp

primary
#42498E
secondary
#B1AC7B
accent
#C25BCD
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #42498E

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

Preview Lab → · Contrast checker → · Palette generator →

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