#3A42CA#3A42CA

#3A42CA is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.6% C 0.206 H 272.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#3A42CA
RGBrgb(58, 66, 202)
HSLhsl(237, 58%, 51%)
HSVhsv(237, 71%, 79%)
CMYKcmyk(71.3%, 67.3%, 0%, 20.8%)
CIE-LABlab(36.10, 41.68, -71.23)
CIE-LCHlch(36.10, 82.53, 300.34°)
OKLaboklab(46.62% 0.0094 -0.2059)
OKLCHoklch(46.62% 0.206 272.6)
XYZxyz(14.3502, 9.0588, 56.8579)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42CA #CAC23A
analogous
#3A8ACA #3A42CA #7A3ACA
triadic
#3A42CA #CA3A42 #42CA3A
tetradic
#3A42CA #CA3A8A #CAC23A #3ACA7A
square
#3A42CA #CA3A8A #CAC23A #3ACA7A
split-complementary
#3A42CA #CA7A3A #8ACA3A
monochromatic
#1D226C #2A319D #3A42CA #6A70D7 #9A9FE4

Accessibility & contrast

On white

7.47
#3A42CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#3A42CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42CA
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42CA#FFFFFF#000000##FFFFFF
##3A42CA1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#006780
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a42ca;
/* rgb */ color: rgb(58, 66, 202);
/* oklch */ color: oklch(46.6% 0.206 272.6);
Tailwind
colors: {
  custom: {
    50: '#8477db',
    500: '#3a42ca',
    950: '#000000',
  },
}
SCSS
$custom: #3a42ca;
$custom-light: #8477db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42ca",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 236.667,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46623,
    "c": 0.20614,
    "h": 272.6
  },
  "luminance": 0.0906
}

Semantic roles & 50–950 ramp

primary
#3A42CA
secondary
#D0CC90
accent
#D847E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3A42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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