#42498F#42498F

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

Color values

HEX#42498F
RGBrgb(66, 73, 143)
HSLhsl(235, 37%, 41%)
HSVhsv(235, 54%, 56%)
CMYKcmyk(53.8%, 49%, 0%, 43.9%)
CIE-LABlab(33.79, 18.14, -39.82)
CIE-LCHlch(33.79, 43.75, 294.50°)
OKLaboklab(43.62% 0.0125 -0.1134)
OKLCHoklch(43.62% 0.114 276.3)
XYZxyz(9.5857, 7.9059, 27.0022)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42498F #8F8842
analogous
#426F8F #42498F #61428F
triadic
#42498F #8F4249 #498F42
tetradic
#42498F #8F426F #8F8842 #428F61
square
#42498F #8F426F #8F8842 #428F61
split-complementary
#42498F #8F6142 #6F8F42
monochromatic
#1B1E3B #2F3465 #42498F #5B63B3 #858BC7

Accessibility & contrast

On white

8.14
#42498F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42498F
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42498F#FFFFFF#000000##FFFFFF
##42498F1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295392
Deuteranopia (green-blind)
#204C8D
Tritanopia (blue-blind)
#205865
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #42498f;
/* rgb */ color: rgb(66, 73, 143);
/* oklch */ color: oklch(43.6% 0.114 276.3);
Tailwind
colors: {
  custom: {
    50: '#7c7bb0',
    500: '#42498f',
    950: '#000000',
  },
}
SCSS
$custom: #42498f;
$custom-light: #7c7bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#42498f",
  "rgb": {
    "r": 66,
    "g": 73,
    "b": 143
  },
  "hsl": {
    "h": 234.545,
    "s": 36.842,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43616,
    "c": 0.11409,
    "h": 276.3
  },
  "luminance": 0.07907
}

Semantic roles & 50–950 ramp

primary
#42498F
secondary
#B1AC7B
accent
#C25BCD
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #42498F

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

Preview Lab → · Contrast checker → · Palette generator →

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