#42398C#42398C

#42398C is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.2% C 0.133 H 283.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#42398C
RGBrgb(66, 57, 140)
HSLhsl(247, 42%, 39%)
HSVhsv(247, 59%, 55%)
CMYKcmyk(52.9%, 59.3%, 0%, 45.1%)
CIE-LABlab(29.36, 27.59, -45.10)
CIE-LCHlch(29.36, 52.87, 301.45°)
OKLaboklab(40.23% 0.0312 -0.1291)
OKLCHoklch(40.23% 0.133 283.6)
XYZxyz(8.4421, 5.9775, 25.5148)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42398C #838C39
analogous
#39598C #42398C #6B398C
triadic
#42398C #8C4239 #398C42
tetradic
#42398C #8C3959 #838C39 #398C6B
square
#42398C #8C3959 #838C39 #398C6B
split-complementary
#42398C #8C6B39 #598C39
monochromatic
#191635 #2D2761 #42398C #584CB6 #8078C8

Accessibility & contrast

On white

9.56
#42398C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#42398C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42398C
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42398C#FFFFFF#000000##FFFFFF
##42398C1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#254C5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42398c;
/* rgb */ color: rgb(66, 57, 140);
/* oklch */ color: oklch(40.2% 0.133 283.6);
Tailwind
colors: {
  custom: {
    50: '#7d6fae',
    500: '#42398c',
    950: '#000000',
  },
}
SCSS
$custom: #42398c;
$custom-light: #7d6fae;
$custom-dark: #000000;
JSON
{
  "hex": "#42398c",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 140
  },
  "hsl": {
    "h": 246.506,
    "s": 42.132,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40234,
    "c": 0.13279,
    "h": 283.6
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#42398C
secondary
#AAB170
accent
#D256C4
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #42398C

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

Preview Lab → · Contrast checker → · Palette generator →

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