#42399F#42399F

#42399F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.159 H 281.0°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#42399F
RGBrgb(66, 57, 159)
HSLhsl(245, 47%, 42%)
HSVhsv(245, 64%, 62%)
CMYKcmyk(58.5%, 64.2%, 0%, 37.6%)
CIE-LABlab(30.85, 33.84, -54.30)
CIE-LCHlch(30.85, 63.98, 301.93°)
OKLaboklab(41.8% 0.0303 -0.1561)
OKLCHoklch(41.8% 0.159 281)
XYZxyz(9.9659, 6.5870, 33.5404)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42399F #969F39
analogous
#39639F #42399F #75399F
triadic
#42399F #9F4239 #399F42
tetradic
#42399F #9F3963 #969F39 #399F75
square
#42399F #9F3963 #969F39 #399F75
split-complementary
#42399F #9F7539 #639F39
monochromatic
#1D1945 #2F2972 #42399F #5D54C2 #8881D2

Accessibility & contrast

On white

9.06
#42399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#42399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42399F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42399F#FFFFFF#000000##FFFFFF
##42399F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#0B5266
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #42399f;
/* rgb */ color: rgb(66, 57, 159);
/* oklch */ color: oklch(41.8% 0.159 281.0);
Tailwind
colors: {
  custom: {
    50: '#8070bc',
    500: '#42399f',
    950: '#000000',
  },
}
SCSS
$custom: #42399f;
$custom-light: #8070bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42399f",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 245.294,
    "s": 47.222,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41798,
    "c": 0.15902,
    "h": 281
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42399F

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

Preview Lab → · Contrast checker → · Palette generator →

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