#42319F#42319F

#42319F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.169 H 282.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#42319F
RGBrgb(66, 49, 159)
HSLhsl(249, 53%, 41%)
HSVhsv(249, 69%, 62%)
CMYKcmyk(58.5%, 69.2%, 0%, 37.6%)
CIE-LABlab(29.05, 38.68, -57.24)
CIE-LCHlch(29.05, 69.08, 304.05°)
OKLaboklab(40.5% 0.0376 -0.1647)
OKLCHoklch(40.5% 0.169 282.9)
XYZxyz(9.6012, 5.8575, 33.4188)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42319F #8E9F31
analogous
#31579F #42319F #79319F
triadic
#42319F #9F4231 #319F42
tetradic
#42319F #9F3157 #8E9F31 #319F79
square
#42319F #9F3157 #8E9F31 #319F79
split-complementary
#42319F #9F7931 #579F31
monochromatic
#1B1441 #2F2370 #42319F #5B47C6 #8476D5

Accessibility & contrast

On white

9.67
#42319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#42319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42319F
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42319F#FFFFFF#000000##FFFFFF
##42319F1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#0D4E64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42319f;
/* rgb */ color: rgb(66, 49, 159);
/* oklch */ color: oklch(40.5% 0.169 282.9);
Tailwind
colors: {
  custom: {
    50: '#816bbc',
    500: '#42319f',
    950: '#000000',
  },
}
SCSS
$custom: #42319f;
$custom-light: #816bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#42319f",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 249.273,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40496,
    "c": 0.16898,
    "h": 282.9
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#42319F
secondary
#B1BD6F
accent
#DC4CC6
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #42319F

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

Preview Lab → · Contrast checker → · Palette generator →

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