#42319E#42319E

#42319E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.168 H 283.0°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#42319E
RGBrgb(66, 49, 158)
HSLhsl(249, 53%, 41%)
HSVhsv(249, 69%, 62%)
CMYKcmyk(58.2%, 69%, 0%, 38%)
CIE-LABlab(28.96, 38.36, -56.77)
CIE-LCHlch(28.96, 68.52, 304.05°)
OKLaboklab(40.41% 0.0378 -0.1634)
OKLCHoklch(40.41% 0.168 283)
XYZxyz(9.5147, 5.8229, 32.9637)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42319E #8D9E31
analogous
#31569E #42319E #78319E
triadic
#42319E #9E4231 #319E42
tetradic
#42319E #9E3156 #8D9E31 #319E78
square
#42319E #9E3156 #8D9E31 #319E78
split-complementary
#42319E #9E7831 #569E31
monochromatic
#1B1441 #2E236F #42319E #5A46C6 #8475D4

Accessibility & contrast

On white

9.70
#42319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#42319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42319E
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42319E#FFFFFF#000000##FFFFFF
##42319E1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#0F4D63
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42319e;
/* rgb */ color: rgb(66, 49, 158);
/* oklch */ color: oklch(40.4% 0.168 283.0);
Tailwind
colors: {
  custom: {
    50: '#806abc',
    500: '#42319e',
    950: '#000000',
  },
}
SCSS
$custom: #42319e;
$custom-light: #806abc;
$custom-dark: #000000;
JSON
{
  "hex": "#42319e",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 249.358,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40405,
    "c": 0.16769,
    "h": 283
  },
  "luminance": 0.05823
}

Semantic roles & 50–950 ramp

primary
#42319E
secondary
#B0BC6E
accent
#DC4CC6
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42319E

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

Preview Lab → · Contrast checker → · Palette generator →

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