#3A42C9#3A42C9

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

Color values

HEX#3A42C9
RGBrgb(58, 66, 201)
HSLhsl(237, 57%, 51%)
HSVhsv(237, 71%, 79%)
CMYKcmyk(71.1%, 67.2%, 0%, 21.2%)
CIE-LABlab(36.01, 41.34, -70.80)
CIE-LCHlch(36.01, 81.99, 300.28°)
OKLaboklab(46.53% 0.0095 -0.2047)
OKLCHoklch(46.53% 0.205 272.7)
XYZxyz(14.2322, 9.0116, 56.2364)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42C9 #C9C13A
analogous
#3A8AC9 #3A42C9 #793AC9
triadic
#3A42C9 #C93A42 #42C93A
tetradic
#3A42C9 #C93A8A #C9C13A #3AC979
square
#3A42C9 #C93A8A #C9C13A #3AC979
split-complementary
#3A42C9 #C9793A #8AC93A
monochromatic
#1D226B #2B319B #3A42C9 #6A70D6 #9A9EE3

Accessibility & contrast

On white

7.49
#3A42C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#3A42C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42C9
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42C9#FFFFFF#000000##FFFFFF
##3A42C91.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCD
Deuteranopia (green-blind)
#004EC6
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a42c9;
/* rgb */ color: rgb(58, 66, 201);
/* oklch */ color: oklch(46.5% 0.205 272.7);
Tailwind
colors: {
  custom: {
    50: '#8477db',
    500: '#3a42c9',
    950: '#000000',
  },
}
SCSS
$custom: #3a42c9;
$custom-light: #8477db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42c9",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 236.643,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4653,
    "c": 0.20488,
    "h": 272.7
  },
  "luminance": 0.09013
}

Semantic roles & 50–950 ramp

primary
#3A42C9
secondary
#CFCC90
accent
#D848E0
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #3A42C9

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

Preview Lab → · Contrast checker → · Palette generator →

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