#3A42D5#3A42D5

#3A42D5 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.220 H 272.1°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#3A42D5
RGBrgb(58, 66, 213)
HSLhsl(237, 65%, 53%)
HSVhsv(237, 73%, 84%)
CMYKcmyk(72.8%, 69%, 0%, 16.5%)
CIE-LABlab(37.11, 45.41, -75.93)
CIE-LCHlch(37.11, 88.47, 300.88°)
OKLaboklab(47.67% 0.0082 -0.2196)
OKLCHoklch(47.67% 0.22 272.1)
XYZxyz(15.6993, 9.5985, 63.9632)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42D5 #D5CD3A
analogous
#3A90D5 #3A42D5 #7F3AD5
triadic
#3A42D5 #D53A42 #42D53A
tetradic
#3A42D5 #D53A90 #D5CD3A #3AD57F
square
#3A42D5 #D53A90 #D5CD3A #3AD57F
split-complementary
#3A42D5 #D57F3A #90D53A
monochromatic
#1A1F7A #252CAD #3A42D5 #6C72E0 #9FA3EB

Accessibility & contrast

On white

7.19
#3A42D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3A42D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42D5
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42D5#FFFFFF#000000##FFFFFF
##3A42D51.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0050D2
Tritanopia (blue-blind)
#006B86
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3a42d5;
/* rgb */ color: rgb(58, 66, 213);
/* oklch */ color: oklch(47.7% 0.220 272.1);
Tailwind
colors: {
  custom: {
    50: '#8777e3',
    500: '#3a42d5',
    950: '#000000',
  },
}
SCSS
$custom: #3a42d5;
$custom-light: #8777e3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42d5",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 236.903,
    "s": 64.854,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47665,
    "c": 0.2198,
    "h": 272.1
  },
  "luminance": 0.096
}

Semantic roles & 50–950 ramp

primary
#3A42D5
secondary
#D7D394
accent
#DF40E8
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3A42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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