#3A42CB#3A42CB

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

Color values

HEX#3A42CB
RGBrgb(58, 66, 203)
HSLhsl(237, 58%, 51%)
HSVhsv(237, 71%, 80%)
CMYKcmyk(71.4%, 67.5%, 0%, 20.4%)
CIE-LABlab(36.19, 42.03, -71.66)
CIE-LCHlch(36.19, 83.08, 300.39°)
OKLaboklab(46.72% 0.0093 -0.2072)
OKLCHoklch(46.72% 0.207 272.6)
XYZxyz(14.4690, 9.1063, 57.4835)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42CB #CBC33A
analogous
#3A8ACB #3A42CB #7A3ACB
triadic
#3A42CB #CB3A42 #42CB3A
tetradic
#3A42CB #CB3A8A #CBC33A #3ACB7A
square
#3A42CB #CB3A8A #CBC33A #3ACB7A
split-complementary
#3A42CB #CB7A3A #8ACB3A
monochromatic
#1D216E #2A309E #3A42CB #6A70D8 #9B9FE5

Accessibility & contrast

On white

7.44
#3A42CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#3A42CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42CB
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42CB#FFFFFF#000000##FFFFFF
##3A42CB1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#006781
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3a42cb;
/* rgb */ color: rgb(58, 66, 203);
/* oklch */ color: oklch(46.7% 0.207 272.6);
Tailwind
colors: {
  custom: {
    50: '#8477dc',
    500: '#3a42cb',
    950: '#000000',
  },
}
SCSS
$custom: #3a42cb;
$custom-light: #8477dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42cb",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 236.69,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.2074,
    "h": 272.6
  },
  "luminance": 0.09108
}

Semantic roles & 50–950 ramp

primary
#3A42CB
secondary
#D0CD90
accent
#D946E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3A42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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