#3A42C6#3A42C6

#3A42C6 is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.3% C 0.201 H 272.8°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#3A42C6
RGBrgb(58, 66, 198)
HSLhsl(237, 55%, 50%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(70.7%, 66.7%, 0%, 22.4%)
CIE-LABlab(35.74, 40.32, -69.50)
CIE-LCHlch(35.74, 80.34, 300.12°)
OKLaboklab(46.25% 0.0098 -0.2008)
OKLCHoklch(46.25% 0.201 272.8)
XYZxyz(13.8828, 8.8718, 54.3959)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C6 #C6BE3A
analogous
#3A88C6 #3A42C6 #783AC6
triadic
#3A42C6 #C63A42 #42C63A
tetradic
#3A42C6 #C63A88 #C6BE3A #3AC678
square
#3A42C6 #C63A88 #C6BE3A #3AC678
split-complementary
#3A42C6 #C6783A #88C63A
monochromatic
#1E2268 #2C3297 #3A42C6 #6970D4 #999DE1

Accessibility & contrast

On white

7.57
#3A42C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A42C6
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C6#FFFFFF#000000##FFFFFF
##3A42C61.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a42c6;
/* rgb */ color: rgb(58, 66, 198);
/* oklch */ color: oklch(46.3% 0.201 272.8);
Tailwind
colors: {
  custom: {
    50: '#8377d8',
    500: '#3a42c6',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c6;
$custom-light: #8377d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c6",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 236.571,
    "s": 55.118,
    "l": 50.196
  },
  "oklch": {
    "l": 0.46251,
    "c": 0.20109,
    "h": 272.8
  },
  "luminance": 0.08873
}

Semantic roles & 50–950 ramp

primary
#3A42C6
secondary
#CDCA8F
accent
#D649DE
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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