#3A42C8#3A42C8

#3A42C8 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.4% C 0.204 H 272.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3A42C8
RGBrgb(58, 66, 200)
HSLhsl(237, 56%, 51%)
HSVhsv(237, 71%, 78%)
CMYKcmyk(71%, 67%, 0%, 21.6%)
CIE-LABlab(35.92, 41.00, -70.37)
CIE-LCHlch(35.92, 81.44, 300.23°)
OKLaboklab(46.44% 0.0096 -0.2034)
OKLCHoklch(46.44% 0.204 272.7)
XYZxyz(14.1150, 8.9647, 55.6189)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C8 #C8C03A
analogous
#3A89C8 #3A42C8 #793AC8
triadic
#3A42C8 #C83A42 #42C83A
tetradic
#3A42C8 #C83A89 #C8C03A #3AC879
square
#3A42C8 #C83A89 #C8C03A #3AC879
split-complementary
#3A42C8 #C8793A #89C83A
monochromatic
#1E226A #2B319A #3A42C8 #6A70D5 #9A9EE3

Accessibility & contrast

On white

7.52
#3A42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3A42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C8
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C8#FFFFFF#000000##FFFFFF
##3A42C81.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a42c8;
/* rgb */ color: rgb(58, 66, 200);
/* oklch */ color: oklch(46.4% 0.204 272.7);
Tailwind
colors: {
  custom: {
    50: '#8477da',
    500: '#3a42c8',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c8;
$custom-light: #8477da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c8",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 236.62,
    "s": 56.349,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.20362,
    "h": 272.7
  },
  "luminance": 0.08966
}

Semantic roles & 50–950 ramp

primary
#3A42C8
secondary
#CECB8F
accent
#D748E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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