#42389D#42389D

#42389D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.158 H 281.5°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#42389D
RGBrgb(66, 56, 157)
HSLhsl(246, 47%, 42%)
HSVhsv(246, 64%, 62%)
CMYKcmyk(58%, 64.3%, 0%, 38.4%)
CIE-LABlab(30.45, 33.81, -53.74)
CIE-LCHlch(30.45, 63.49, 302.17°)
OKLaboklab(41.46% 0.0314 -0.1545)
OKLCHoklch(41.46% 0.158 281.5)
XYZxyz(9.7448, 6.4203, 32.6175)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42389D #939D38
analogous
#38609D #42389D #75389D
triadic
#42389D #9D4238 #389D42
tetradic
#42389D #9D3860 #939D38 #389D75
square
#42389D #9D3860 #939D38 #389D75
split-complementary
#42389D #9D7538 #609D38
monochromatic
#1C1843 #2F2870 #42389D #5C51C1 #877ED1

Accessibility & contrast

On white

9.19
#42389D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42389D
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42389D#FFFFFF#000000##FFFFFF
##42389D1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#105165
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42389d;
/* rgb */ color: rgb(66, 56, 157);
/* oklch */ color: oklch(41.5% 0.158 281.5);
Tailwind
colors: {
  custom: {
    50: '#806fbb',
    500: '#42389d',
    950: '#000000',
  },
}
SCSS
$custom: #42389d;
$custom-light: #806fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#42389d",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 157
  },
  "hsl": {
    "h": 245.941,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41456,
    "c": 0.15762,
    "h": 281.5
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #42389D

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

Preview Lab → · Contrast checker → · Palette generator →

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