#42389E#42389E

#42389E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.5% C 0.159 H 281.4°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#42389E
RGBrgb(66, 56, 158)
HSLhsl(246, 48%, 42%)
HSVhsv(246, 65%, 62%)
CMYKcmyk(58.2%, 64.6%, 0%, 38%)
CIE-LABlab(30.53, 34.14, -54.21)
CIE-LCHlch(30.53, 64.06, 302.20°)
OKLaboklab(41.54% 0.0313 -0.1558)
OKLCHoklch(41.54% 0.159 281.4)
XYZxyz(9.8306, 6.4546, 33.0690)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42389E #949E38
analogous
#38619E #42389E #75389E
triadic
#42389E #9E4238 #389E42
tetradic
#42389E #9E3861 #949E38 #389E75
square
#42389E #9E3861 #949E38 #389E75
split-complementary
#42389E #9E7538 #619E38
monochromatic
#1C1844 #2F2871 #42389E #5D52C2 #877FD2

Accessibility & contrast

On white

9.17
#42389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#42389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42389E
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42389E#FFFFFF#000000##FFFFFF
##42389E1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#0E5166
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42389e;
/* rgb */ color: rgb(66, 56, 158);
/* oklch */ color: oklch(41.5% 0.159 281.4);
Tailwind
colors: {
  custom: {
    50: '#806fbb',
    500: '#42389e',
    950: '#000000',
  },
}
SCSS
$custom: #42389e;
$custom-light: #806fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#42389e",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 245.882,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.15897,
    "h": 281.4
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#42389E
secondary
#B4BB77
accent
#D751CA
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42389E

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

Preview Lab → · Contrast checker → · Palette generator →

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