#42399E#42399E

#42399E is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.7% C 0.158 H 281.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#42399E
RGBrgb(66, 57, 158)
HSLhsl(245, 47%, 42%)
HSVhsv(245, 64%, 62%)
CMYKcmyk(58.2%, 63.9%, 0%, 38%)
CIE-LABlab(30.77, 33.51, -53.83)
CIE-LCHlch(30.77, 63.41, 301.91°)
OKLaboklab(41.71% 0.0304 -0.1547)
OKLCHoklch(41.71% 0.158 281.1)
XYZxyz(9.8795, 6.5525, 33.0853)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42399E #959E39
analogous
#39629E #42399E #75399E
triadic
#42399E #9E4239 #399E42
tetradic
#42399E #9E3962 #959E39 #399E75
square
#42399E #9E3962 #959E39 #399E75
split-complementary
#42399E #9E7539 #629E39
monochromatic
#1C1944 #2F2971 #42399E #5D53C1 #8780D1

Accessibility & contrast

On white

9.09
#42399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#42399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42399E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42399E#FFFFFF#000000##FFFFFF
##42399E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#0D5266
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42399e;
/* rgb */ color: rgb(66, 57, 158);
/* oklch */ color: oklch(41.7% 0.158 281.1);
Tailwind
colors: {
  custom: {
    50: '#8070bb',
    500: '#42399e',
    950: '#000000',
  },
}
SCSS
$custom: #42399e;
$custom-light: #8070bb;
$custom-dark: #000000;
JSON
{
  "hex": "#42399e",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 245.347,
    "s": 46.977,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41712,
    "c": 0.15767,
    "h": 281.1
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#42399E
secondary
#B5BB78
accent
#D751CB
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42399E

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

Preview Lab → · Contrast checker → · Palette generator →

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