#42389A#42389A

#42389A is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.2% C 0.154 H 281.9°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#42389A
RGBrgb(66, 56, 154)
HSLhsl(246, 47%, 41%)
HSVhsv(246, 64%, 60%)
CMYKcmyk(57.1%, 63.6%, 0%, 39.6%)
CIE-LABlab(30.20, 32.82, -52.31)
CIE-LCHlch(30.20, 61.76, 302.10°)
OKLaboklab(41.2% 0.0317 -0.1503)
OKLCHoklch(41.2% 0.154 281.9)
XYZxyz(9.4919, 6.3191, 31.2851)
Luminance0.0632 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42389A #909A38
analogous
#385F9A #42389A #73389A
triadic
#42389A #9A4238 #389A42
tetradic
#42389A #9A385F #909A38 #389A73
square
#42389A #9A385F #909A38 #389A73
split-complementary
#42389A #9A7338 #5F9A38
monochromatic
#1C1740 #2F286D #42389A #5B50BF #857DD0

Accessibility & contrast

On white

9.28
#42389A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#42389A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42389A
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42389A#FFFFFF#000000##FFFFFF
##42389A1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004498
Tritanopia (blue-blind)
#155063
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42389a;
/* rgb */ color: rgb(66, 56, 154);
/* oklch */ color: oklch(41.2% 0.154 281.9);
Tailwind
colors: {
  custom: {
    50: '#7f6fb9',
    500: '#42389a',
    950: '#000000',
  },
}
SCSS
$custom: #42389a;
$custom-light: #7f6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#42389a",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 154
  },
  "hsl": {
    "h": 246.122,
    "s": 46.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.412,
    "c": 0.15358,
    "h": 281.9
  },
  "luminance": 0.0632
}

Semantic roles & 50–950 ramp

primary
#42389A
secondary
#B2B975
accent
#D651C9
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #42389A

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

Preview Lab → · Contrast checker → · Palette generator →

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