#42399D#42399D

#42399D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.156 H 281.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#42399D
RGBrgb(66, 57, 157)
HSLhsl(245, 47%, 42%)
HSVhsv(245, 64%, 62%)
CMYKcmyk(58%, 63.7%, 0%, 38.4%)
CIE-LABlab(30.68, 33.19, -53.35)
CIE-LCHlch(30.68, 62.83, 301.88°)
OKLaboklab(41.63% 0.0305 -0.1533)
OKLCHoklch(41.63% 0.156 281.2)
XYZxyz(9.7938, 6.5182, 32.6338)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42399D #949D39
analogous
#39629D #42399D #74399D
triadic
#42399D #9D4239 #399D42
tetradic
#42399D #9D3962 #949D39 #399D74
square
#42399D #9D3962 #949D39 #399D74
split-complementary
#42399D #9D7439 #629D39
monochromatic
#1C1843 #2F2970 #42399D #5D53C0 #8780D1

Accessibility & contrast

On white

9.12
#42399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#42399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42399D
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42399D#FFFFFF#000000##FFFFFF
##42399D1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#105265
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42399d;
/* rgb */ color: rgb(66, 57, 157);
/* oklch */ color: oklch(41.6% 0.156 281.2);
Tailwind
colors: {
  custom: {
    50: '#8070bb',
    500: '#42399d',
    950: '#000000',
  },
}
SCSS
$custom: #42399d;
$custom-light: #8070bb;
$custom-dark: #000000;
JSON
{
  "hex": "#42399d",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 245.4,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41627,
    "c": 0.15632,
    "h": 281.2
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#42399D
secondary
#B4BA78
accent
#D651CA
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42399D

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

Preview Lab → · Contrast checker → · Palette generator →

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