#42319A#42319A

#42319A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.163 H 283.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#42319A
RGBrgb(66, 49, 154)
HSLhsl(250, 52%, 40%)
HSVhsv(250, 68%, 60%)
CMYKcmyk(57.1%, 68.2%, 0%, 39.6%)
CIE-LABlab(28.61, 37.09, -54.91)
CIE-LCHlch(28.61, 66.26, 304.04°)
OKLaboklab(40.04% 0.0384 -0.1579)
OKLCHoklch(40.04% 0.163 283.7)
XYZxyz(9.1760, 5.6874, 31.1798)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42319A #899A31
analogous
#31559A #42319A #76319A
triadic
#42319A #9A4231 #319A42
tetradic
#42319A #9A3155 #899A31 #319A76
square
#42319A #9A3155 #899A31 #319A76
split-complementary
#42319A #9A7631 #559A31
monochromatic
#1A133D #2E226C #42319A #5945C4 #8273D2

Accessibility & contrast

On white

9.82
#42319A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#42319A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42319A
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42319A#FFFFFF#000000##FFFFFF
##42319A1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#164C61
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #42319a;
/* rgb */ color: rgb(66, 49, 154);
/* oklch */ color: oklch(40.0% 0.163 283.7);
Tailwind
colors: {
  custom: {
    50: '#806ab9',
    500: '#42319a',
    950: '#000000',
  },
}
SCSS
$custom: #42319a;
$custom-light: #806ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#42319a",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 154
  },
  "hsl": {
    "h": 249.714,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40044,
    "c": 0.16252,
    "h": 283.7
  },
  "luminance": 0.05688
}

Semantic roles & 50–950 ramp

primary
#42319A
secondary
#AEBA6C
accent
#DB4DC4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #42319A

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

Preview Lab → · Contrast checker → · Palette generator →

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