#3A42C7#3A42C7

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

Color values

HEX#3A42C7
RGBrgb(58, 66, 199)
HSLhsl(237, 56%, 50%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(70.9%, 66.8%, 0%, 22%)
CIE-LABlab(35.83, 40.66, -69.93)
CIE-LCHlch(35.83, 80.89, 300.18°)
OKLaboklab(46.34% 0.0097 -0.2021)
OKLCHoklch(46.34% 0.202 272.7)
XYZxyz(13.9985, 8.9181, 55.0054)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C7 #C7BF3A
analogous
#3A88C7 #3A42C7 #793AC7
triadic
#3A42C7 #C73A42 #42C73A
tetradic
#3A42C7 #C73A88 #C7BF3A #3AC779
square
#3A42C7 #C73A88 #C7BF3A #3AC779
split-complementary
#3A42C7 #C7793A #88C73A
monochromatic
#1E2269 #2B3298 #3A42C7 #6A70D5 #999DE2

Accessibility & contrast

On white

7.54
#3A42C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3A42C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C7
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C7#FFFFFF#000000##FFFFFF
##3A42C71.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCB
Deuteranopia (green-blind)
#004EC5
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a42c7;
/* rgb */ color: rgb(58, 66, 199);
/* oklch */ color: oklch(46.3% 0.202 272.7);
Tailwind
colors: {
  custom: {
    50: '#8477d9',
    500: '#3a42c7',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c7;
$custom-light: #8477d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c7",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 236.596,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46344,
    "c": 0.20235,
    "h": 272.7
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#3A42C7
secondary
#CECA8F
accent
#D749DF
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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