#42319C#42319C

#42319C is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.165 H 283.3°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#42319C
RGBrgb(66, 49, 156)
HSLhsl(250, 52%, 40%)
HSVhsv(250, 69%, 61%)
CMYKcmyk(57.7%, 68.6%, 0%, 38.8%)
CIE-LABlab(28.78, 37.73, -55.85)
CIE-LCHlch(28.78, 67.39, 304.04°)
OKLaboklab(40.22% 0.0381 -0.1607)
OKLCHoklch(40.22% 0.165 283.3)
XYZxyz(9.3440, 5.7546, 32.0644)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42319C #8B9C31
analogous
#31559C #42319C #78319C
triadic
#42319C #9C4231 #319C42
tetradic
#42319C #9C3155 #8B9C31 #319C78
square
#42319C #9C3155 #8B9C31 #319C78
split-complementary
#42319C #9C7831 #559C31
monochromatic
#1B143F #2E226D #42319C #5A45C5 #8374D3

Accessibility & contrast

On white

9.76
#42319C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#42319C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42319C
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42319C#FFFFFF#000000##FFFFFF
##42319C1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#134D62
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #42319c;
/* rgb */ color: rgb(66, 49, 156);
/* oklch */ color: oklch(40.2% 0.165 283.3);
Tailwind
colors: {
  custom: {
    50: '#806aba',
    500: '#42319c',
    950: '#000000',
  },
}
SCSS
$custom: #42319c;
$custom-light: #806aba;
$custom-dark: #000000;
JSON
{
  "hex": "#42319c",
  "rgb": {
    "r": 66,
    "g": 49,
    "b": 156
  },
  "hsl": {
    "h": 249.533,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.16511,
    "h": 283.3
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#42319C
secondary
#AFBB6D
accent
#DC4CC5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42319C

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

Preview Lab → · Contrast checker → · Palette generator →

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