#42399A#42399A

#42399A is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.152 H 281.6°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#42399A
RGBrgb(66, 57, 154)
HSLhsl(246, 46%, 41%)
HSVhsv(246, 63%, 60%)
CMYKcmyk(57.1%, 63%, 0%, 39.6%)
CIE-LABlab(30.44, 32.20, -51.93)
CIE-LCHlch(30.44, 61.10, 301.80°)
OKLaboklab(41.37% 0.0307 -0.1491)
OKLCHoklch(41.37% 0.152 281.6)
XYZxyz(9.5408, 6.4170, 31.3014)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42399A #919A39
analogous
#39619A #42399A #73399A
triadic
#42399A #9A4239 #399A42
tetradic
#42399A #9A3961 #919A39 #399A73
square
#42399A #9A3961 #919A39 #399A73
split-complementary
#42399A #9A7339 #619A39
monochromatic
#1C1841 #2F286D #42399A #5C51BF #867ECF

Accessibility & contrast

On white

9.20
#42399A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#42399A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42399A
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42399A#FFFFFF#000000##FFFFFF
##42399A1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#155164
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42399a;
/* rgb */ color: rgb(66, 57, 154);
/* oklch */ color: oklch(41.4% 0.152 281.6);
Tailwind
colors: {
  custom: {
    50: '#7f70b9',
    500: '#42399a',
    950: '#000000',
  },
}
SCSS
$custom: #42399a;
$custom-light: #7f70b9;
$custom-dark: #000000;
JSON
{
  "hex": "#42399a",
  "rgb": {
    "r": 66,
    "g": 57,
    "b": 154
  },
  "hsl": {
    "h": 245.567,
    "s": 45.972,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41374,
    "c": 0.15226,
    "h": 281.6
  },
  "luminance": 0.06418
}

Semantic roles & 50–950 ramp

primary
#42399A
secondary
#B3B976
accent
#D652C9
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #42399A

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

Preview Lab → · Contrast checker → · Palette generator →

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