#3A42A4#3A42A4

#3A42A4 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.156 H 274.3°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#3A42A4
RGBrgb(58, 66, 164)
HSLhsl(235, 48%, 44%)
HSVhsv(235, 65%, 64%)
CMYKcmyk(64.6%, 59.8%, 0%, 35.7%)
CIE-LABlab(32.87, 28.46, -54.06)
CIE-LCHlch(32.87, 61.09, 297.76°)
OKLaboklab(43.26% 0.0117 -0.1556)
OKLCHoklch(43.26% 0.156 274.3)
XYZxyz(10.3918, 7.4754, 36.0100)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42A4 #A49C3A
analogous
#3A77A4 #3A42A4 #673AA4
triadic
#3A42A4 #A43A42 #42A43A
tetradic
#3A42A4 #A43A77 #A49C3A #3AA467
square
#3A42A4 #A43A77 #A49C3A #3AA467
split-complementary
#3A42A4 #A4673A #77A43A
monochromatic
#1A1E4A #2A3077 #3A42A4 #5760C4 #858BD4

Accessibility & contrast

On white

8.42
#3A42A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3A42A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42A4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42A4#FFFFFF#000000##FFFFFF
##3A42A41.008.422.508.42
#FFFFFF8.421.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A7
Deuteranopia (green-blind)
#0049A2
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3a42a4;
/* rgb */ color: rgb(58, 66, 164);
/* oklch */ color: oklch(43.3% 0.156 274.3);
Tailwind
colors: {
  custom: {
    50: '#7c76c0',
    500: '#3a42a4',
    950: '#000000',
  },
}
SCSS
$custom: #3a42a4;
$custom-light: #7c76c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42a4",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 235.472,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43257,
    "c": 0.15601,
    "h": 274.3
  },
  "luminance": 0.07476
}

Semantic roles & 50–950 ramp

primary
#3A42A4
secondary
#BEB97C
accent
#CD50D7
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #3A42A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3A42A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva