#3A42C4#3A42C4

#3A42C4 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.1% C 0.199 H 272.9°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#3A42C4
RGBrgb(58, 66, 196)
HSLhsl(237, 54%, 50%)
HSVhsv(237, 70%, 77%)
CMYKcmyk(70.4%, 66.3%, 0%, 23.1%)
CIE-LABlab(35.56, 39.63, -68.62)
CIE-LCHlch(35.56, 79.24, 300.01°)
OKLaboklab(46.07% 0.01 -0.1983)
OKLCHoklch(46.07% 0.199 272.9)
XYZxyz(13.6536, 8.7802, 53.1890)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C4 #C4BC3A
analogous
#3A87C4 #3A42C4 #773AC4
triadic
#3A42C4 #C43A42 #42C43A
tetradic
#3A42C4 #C43A87 #C4BC3A #3AC477
square
#3A42C4 #C43A87 #C4BC3A #3AC477
split-complementary
#3A42C4 #C4773A #87C43A
monochromatic
#1E2266 #2C3295 #3A42C4 #696FD3 #989CE0

Accessibility & contrast

On white

7.62
#3A42C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#3A42C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C4
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C4#FFFFFF#000000##FFFFFF
##3A42C41.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#00657D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a42c4;
/* rgb */ color: rgb(58, 66, 196);
/* oklch */ color: oklch(46.1% 0.199 272.9);
Tailwind
colors: {
  custom: {
    50: '#8377d7',
    500: '#3a42c4',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c4;
$custom-light: #8377d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c4",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 236.522,
    "s": 54.331,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46066,
    "c": 0.19854,
    "h": 272.9
  },
  "luminance": 0.08781
}

Semantic roles & 50–950 ramp

primary
#3A42C4
secondary
#CCC98E
accent
#D54ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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