#42398E#42398E

#42398E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.136 H 283.3°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#42398E
RGBrgb(66, 57, 142)
HSLhsl(246, 43%, 39%)
HSVhsv(246, 60%, 56%)
CMYKcmyk(53.5%, 59.9%, 0%, 44.3%)
CIE-LABlab(29.51, 28.25, -46.09)
CIE-LCHlch(29.51, 54.06, 301.50°)
OKLaboklab(40.39% 0.0312 -0.132)
OKLCHoklch(40.39% 0.136 283.3)
XYZxyz(8.5909, 6.0370, 26.2985)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42398E #858E39
analogous
#395B8E #42398E #6D398E
triadic
#42398E #8E4239 #398E42
tetradic
#42398E #8E395B #858E39 #398E6D
square
#42398E #8E395B #858E39 #398E6D
split-complementary
#42398E #8E6D39 #5B8E39
monochromatic
#191637 #2E2762 #42398E #584DB7 #8178C9

Accessibility & contrast

On white

9.51
#42398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42398E
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42398E#FFFFFF#000000##FFFFFF
##42398E1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#234D5E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #42398e;
/* rgb */ color: rgb(66, 57, 142);
/* oklch */ color: oklch(40.4% 0.136 283.3);
Tailwind
colors: {
  custom: {
    50: '#7d70b0',
    500: '#42398e',
    950: '#000000',
  },
}
SCSS
$custom: #42398e;
$custom-light: #7d70b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42398e",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 246.353,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40392,
    "c": 0.13562,
    "h": 283.3
  },
  "luminance": 0.06037
}

Semantic roles & 50–950 ramp

primary
#42398E
secondary
#ABB271
accent
#D255C5
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0710
muted
#7C7A7F

Preview Lab

Preview with #42398E

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

Preview Lab → · Contrast checker → · Palette generator →

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