#42398F#42398F

#42398F is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.137 H 283.1°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#42398F
RGBrgb(66, 57, 143)
HSLhsl(246, 43%, 39%)
HSVhsv(246, 60%, 56%)
CMYKcmyk(53.8%, 60.1%, 0%, 43.9%)
CIE-LABlab(29.58, 28.57, -46.59)
CIE-LCHlch(29.58, 54.65, 301.52°)
OKLaboklab(40.47% 0.0312 -0.1334)
OKLCHoklch(40.47% 0.137 283.1)
XYZxyz(8.6663, 6.0672, 26.6957)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42398F #868F39
analogous
#395B8F #42398F #6D398F
triadic
#42398F #8F4239 #398F42
tetradic
#42398F #8F395B #868F39 #398F6D
square
#42398F #8F395B #868F39 #398F6D
split-complementary
#42398F #8F6D39 #5B8F39
monochromatic
#1A1637 #2E2863 #42398F #584DB8 #8179CA

Accessibility & contrast

On white

9.49
#42398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#42398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42398F
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42398F#FFFFFF#000000##FFFFFF
##42398F1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#224D5E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #42398f;
/* rgb */ color: rgb(66, 57, 143);
/* oklch */ color: oklch(40.5% 0.137 283.1);
Tailwind
colors: {
  custom: {
    50: '#7d70b0',
    500: '#42398f',
    950: '#000000',
  },
}
SCSS
$custom: #42398f;
$custom-light: #7d70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42398f",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 246.279,
    "s": 43,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40472,
    "c": 0.13703,
    "h": 283.1
  },
  "luminance": 0.06068
}

Semantic roles & 50–950 ramp

primary
#42398F
secondary
#ACB371
accent
#D355C6
background
#F8F6FA
surface
#EFECF5
border
#CAC7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #42398F

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

Preview Lab → · Contrast checker → · Palette generator →

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