#3A42C3#3A42C3

#3A42C3 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 46.0% C 0.197 H 272.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#3A42C3
RGBrgb(58, 66, 195)
HSLhsl(236, 54%, 50%)
HSVhsv(236, 70%, 76%)
CMYKcmyk(70.3%, 66.2%, 0%, 23.5%)
CIE-LABlab(35.47, 39.29, -68.18)
CIE-LCHlch(35.47, 78.69, 299.95°)
OKLaboklab(45.97% 0.0101 -0.197)
OKLCHoklch(45.97% 0.197 272.9)
XYZxyz(13.5402, 8.7348, 52.5916)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C3 #C3BB3A
analogous
#3A87C3 #3A42C3 #763AC3
triadic
#3A42C3 #C33A42 #42C33A
tetradic
#3A42C3 #C33A87 #C3BB3A #3AC376
square
#3A42C3 #C33A87 #C3BB3A #3AC376
split-complementary
#3A42C3 #C3763A #87C33A
monochromatic
#1E2265 #2C3294 #3A42C3 #686ED2 #979CE0

Accessibility & contrast

On white

7.64
#3A42C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#3A42C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C3#FFFFFF#000000##FFFFFF
##3A42C31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC7
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a42c3;
/* rgb */ color: rgb(58, 66, 195);
/* oklch */ color: oklch(46.0% 0.197 272.9);
Tailwind
colors: {
  custom: {
    50: '#8377d6',
    500: '#3a42c3',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c3;
$custom-light: #8377d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c3",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 236.496,
    "s": 54.15,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45974,
    "c": 0.19726,
    "h": 272.9
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#3A42C3
secondary
#CCC88D
accent
#D54ADE
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42C3

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

Preview Lab → · Contrast checker → · Palette generator →

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