#42398D#42398D

#42398D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.134 H 283.4°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#42398D
RGBrgb(66, 57, 141)
HSLhsl(246, 42%, 39%)
HSVhsv(246, 60%, 55%)
CMYKcmyk(53.2%, 59.6%, 0%, 44.7%)
CIE-LABlab(29.43, 27.92, -45.60)
CIE-LCHlch(29.43, 53.47, 301.48°)
OKLaboklab(40.31% 0.0312 -0.1305)
OKLCHoklch(40.31% 0.134 283.4)
XYZxyz(8.5162, 6.0071, 25.9049)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42398D #848D39
analogous
#395A8D #42398D #6C398D
triadic
#42398D #8D4239 #398D42
tetradic
#42398D #8D395A #848D39 #398D6C
square
#42398D #8D395A #848D39 #398D6C
split-complementary
#42398D #8D6C39 #5A8D39
monochromatic
#191636 #2E2761 #42398D #584CB7 #8178C8

Accessibility & contrast

On white

9.54
#42398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42398D
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42398D#FFFFFF#000000##FFFFFF
##42398D1.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004890
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#244C5D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42398d;
/* rgb */ color: rgb(66, 57, 141);
/* oklch */ color: oklch(40.3% 0.134 283.4);
Tailwind
colors: {
  custom: {
    50: '#7d70af',
    500: '#42398d',
    950: '#000000',
  },
}
SCSS
$custom: #42398d;
$custom-light: #7d70af;
$custom-dark: #000000;
JSON
{
  "hex": "#42398d",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 246.429,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40313,
    "c": 0.13421,
    "h": 283.4
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#42398D
secondary
#ABB270
accent
#D256C5
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #42398D

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

Preview Lab → · Contrast checker → · Palette generator →

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