#42389C#42389C

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

Color values

HEX#42389C
RGBrgb(66, 56, 156)
HSLhsl(246, 47%, 42%)
HSVhsv(246, 64%, 61%)
CMYKcmyk(57.7%, 64.1%, 0%, 38.8%)
CIE-LABlab(30.37, 33.48, -53.26)
CIE-LCHlch(30.37, 62.91, 302.15°)
OKLaboklab(41.37% 0.0315 -0.1531)
OKLCHoklch(41.37% 0.156 281.6)
XYZxyz(9.6598, 6.3863, 32.1697)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42389C #929C38
analogous
#38609C #42389C #74389C
triadic
#42389C #9C4238 #389C42
tetradic
#42389C #9C3860 #929C38 #389C74
square
#42389C #9C3860 #929C38 #389C74
split-complementary
#42389C #9C7438 #609C38
monochromatic
#1C1842 #2F286F #42389C #5C51C0 #867ED1

Accessibility & contrast

On white

9.22
#42389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#42389C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42389C
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42389C#FFFFFF#000000##FFFFFF
##42389C1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#125164
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #42389c;
/* rgb */ color: rgb(66, 56, 156);
/* oklch */ color: oklch(41.4% 0.156 281.6);
Tailwind
colors: {
  custom: {
    50: '#806fba',
    500: '#42389c',
    950: '#000000',
  },
}
SCSS
$custom: #42389c;
$custom-light: #806fba;
$custom-dark: #000000;
JSON
{
  "hex": "#42389c",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 246,
    "s": 47.17,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4137,
    "c": 0.15628,
    "h": 281.6
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#42389C
secondary
#B3BA76
accent
#D751C9
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42389C

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

Preview Lab → · Contrast checker → · Palette generator →

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