#42458B#42458B

#42458B is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.5% C 0.114 H 278.5°. Best body text is #FFFFFF at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#42458B
RGBrgb(66, 69, 139)
HSLhsl(238, 36%, 40%)
HSVhsv(238, 53%, 55%)
CMYKcmyk(52.5%, 50.4%, 0%, 45.5%)
CIE-LABlab(32.43, 19.42, -39.53)
CIE-LCHlch(32.43, 44.05, 296.16°)
OKLaboklab(42.51% 0.0169 -0.1126)
OKLCHoklch(42.51% 0.114 278.5)
XYZxyz(9.0336, 7.2780, 25.3499)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42458B #8B8842
analogous
#426A8B #42458B #63428B
triadic
#42458B #8B4245 #458B42
tetradic
#42458B #8B426A #8B8842 #428B63
square
#42458B #8B426A #8B8842 #428B63
split-complementary
#42458B #8B6342 #6A8B42
monochromatic
#1B1C38 #2E3062 #42458B #5A5DB1 #8386C4

Accessibility & contrast

On white

8.55
#42458B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#42458B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42458B
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42458B#FFFFFF#000000##FFFFFF
##42458B1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244F8E
Deuteranopia (green-blind)
#1D4989
Tritanopia (blue-blind)
#245461
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42458b;
/* rgb */ color: rgb(66, 69, 139);
/* oklch */ color: oklch(42.5% 0.114 278.5);
Tailwind
colors: {
  custom: {
    50: '#7c78ad',
    500: '#42458b',
    950: '#000000',
  },
}
SCSS
$custom: #42458b;
$custom-light: #7c78ad;
$custom-dark: #000000;
JSON
{
  "hex": "#42458b",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 139
  },
  "hsl": {
    "h": 237.534,
    "s": 35.61,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.11387,
    "h": 278.5
  },
  "luminance": 0.07279
}

Semantic roles & 50–950 ramp

primary
#42458B
secondary
#AFAD7A
accent
#C75CCC
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#0A0910
muted
#7C7B7F

Preview Lab

Preview with #42458B

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

Preview Lab → · Contrast checker → · Palette generator →

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