#42389F#42389F

#42389F is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.160 H 281.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#42389F
RGBrgb(66, 56, 159)
HSLhsl(246, 48%, 42%)
HSVhsv(246, 65%, 62%)
CMYKcmyk(58.5%, 64.8%, 0%, 37.6%)
CIE-LABlab(30.61, 34.46, -54.68)
CIE-LCHlch(30.61, 64.64, 302.22°)
OKLaboklab(41.63% 0.0312 -0.1572)
OKLCHoklch(41.63% 0.16 281.2)
XYZxyz(9.9170, 6.4891, 33.5241)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42389F #959F38
analogous
#38629F #42389F #75389F
triadic
#42389F #9F4238 #389F42
tetradic
#42389F #9F3862 #959F38 #389F75
square
#42389F #9F3862 #959F38 #389F75
split-complementary
#42389F #9F7538 #629F38
monochromatic
#1C1844 #2F2872 #42389F #5D52C2 #877FD2

Accessibility & contrast

On white

9.14
#42389F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#42389F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42389F
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42389F#FFFFFF#000000##FFFFFF
##42389F1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#0B5266
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #42389f;
/* rgb */ color: rgb(66, 56, 159);
/* oklch */ color: oklch(41.6% 0.160 281.2);
Tailwind
colors: {
  custom: {
    50: '#806fbc',
    500: '#42389f',
    950: '#000000',
  },
}
SCSS
$custom: #42389f;
$custom-light: #806fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#42389f",
  "rgb": {
    "r": 66,
    "g": 56,
    "b": 159
  },
  "hsl": {
    "h": 245.825,
    "s": 47.907,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41628,
    "c": 0.1603,
    "h": 281.2
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#42389F
secondary
#B5BB77
accent
#D750CA
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42389F

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

Preview Lab → · Contrast checker → · Palette generator →

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