#42458C#42458C

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

Color values

HEX#42458C
RGBrgb(66, 69, 140)
HSLhsl(238, 36%, 40%)
HSVhsv(238, 53%, 55%)
CMYKcmyk(52.9%, 50.7%, 0%, 45.1%)
CIE-LABlab(32.50, 19.76, -40.04)
CIE-LCHlch(32.50, 44.65, 296.26°)
OKLaboklab(42.58% 0.017 -0.1141)
OKLCHoklch(42.58% 0.115 278.5)
XYZxyz(9.1070, 7.3074, 25.7364)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42458C #8C8942
analogous
#426A8C #42458C #64428C
triadic
#42458C #8C4245 #458C42
tetradic
#42458C #8C426A #8C8942 #428C64
square
#42458C #8C426A #8C8942 #428C64
split-complementary
#42458C #8C6442 #6A8C42
monochromatic
#1B1C39 #2E3162 #42458C #5A5EB1 #8486C5

Accessibility & contrast

On white

8.53
#42458C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42458C
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42458C#FFFFFF#000000##FFFFFF
##42458C1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234F8F
Deuteranopia (green-blind)
#1C4A8A
Tritanopia (blue-blind)
#235562
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #42458c;
/* rgb */ color: rgb(66, 69, 140);
/* oklch */ color: oklch(42.6% 0.115 278.5);
Tailwind
colors: {
  custom: {
    50: '#7c78ae',
    500: '#42458c',
    950: '#000000',
  },
}
SCSS
$custom: #42458c;
$custom-light: #7c78ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42458c",
  "rgb": {
    "r": 66,
    "g": 69,
    "b": 140
  },
  "hsl": {
    "h": 237.568,
    "s": 35.922,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42579,
    "c": 0.11537,
    "h": 278.5
  },
  "luminance": 0.07308
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42458C

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

Preview Lab → · Contrast checker → · Palette generator →

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