#3A42C5#3A42C5

#3A42C5 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.2% C 0.200 H 272.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#3A42C5
RGBrgb(58, 66, 197)
HSLhsl(237, 55%, 50%)
HSVhsv(237, 71%, 77%)
CMYKcmyk(70.6%, 66.5%, 0%, 22.7%)
CIE-LABlab(35.65, 39.98, -69.06)
CIE-LCHlch(35.65, 79.79, 300.06°)
OKLaboklab(46.16% 0.0099 -0.1996)
OKLCHoklch(46.16% 0.2 272.8)
XYZxyz(13.7678, 8.8258, 53.7905)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C5 #C5BD3A
analogous
#3A87C5 #3A42C5 #783AC5
triadic
#3A42C5 #C53A42 #42C53A
tetradic
#3A42C5 #C53A87 #C5BD3A #3AC578
square
#3A42C5 #C53A87 #C5BD3A #3AC578
split-complementary
#3A42C5 #C5783A #87C53A
monochromatic
#1E2266 #2C3296 #3A42C5 #696FD3 #999DE1

Accessibility & contrast

On white

7.59
#3A42C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3A42C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C5
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C5#FFFFFF#000000##FFFFFF
##3A42C51.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC9
Deuteranopia (green-blind)
#004DC3
Tritanopia (blue-blind)
#00657E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a42c5;
/* rgb */ color: rgb(58, 66, 197);
/* oklch */ color: oklch(46.2% 0.200 272.8);
Tailwind
colors: {
  custom: {
    50: '#8377d8',
    500: '#3a42c5',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c5;
$custom-light: #8377d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c5",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 236.547,
    "s": 54.51,
    "l": 50
  },
  "oklch": {
    "l": 0.46159,
    "c": 0.19981,
    "h": 272.8
  },
  "luminance": 0.08827
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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