#3A42BA#3A42BA

#3A42BA is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.186 H 273.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#3A42BA
RGBrgb(58, 66, 186)
HSLhsl(236, 52%, 48%)
HSVhsv(236, 69%, 73%)
CMYKcmyk(68.8%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.68, 36.18, -64.19)
CIE-LCHlch(34.68, 73.68, 299.40°)
OKLaboklab(45.16% 0.0108 -0.1853)
OKLCHoklch(45.16% 0.186 273.3)
XYZxyz(12.5531, 8.3400, 47.3931)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42BA #BAB23A
analogous
#3A82BA #3A42BA #723ABA
triadic
#3A42BA #BA3A42 #42BA3A
tetradic
#3A42BA #BA3A82 #BAB23A #3ABA72
square
#3A42BA #BA3A82 #BAB23A #3ABA72
split-complementary
#3A42BA #BA723A #82BA3A
monochromatic
#1D215D #2B318B #3A42BA #636ACE #9296DD

Accessibility & contrast

On white

7.87
#3A42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3A42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42BA
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42BA#FFFFFF#000000##FFFFFF
##3A42BA1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a42ba;
/* rgb */ color: rgb(58, 66, 186);
/* oklch */ color: oklch(45.2% 0.186 273.3);
Tailwind
colors: {
  custom: {
    50: '#8176d0',
    500: '#3a42ba',
    950: '#000000',
  },
}
SCSS
$custom: #3a42ba;
$custom-light: #8176d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42ba",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 236.25,
    "s": 52.459,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45158,
    "c": 0.18562,
    "h": 273.3
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#3A42BA
secondary
#C8C488
accent
#D34CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3A42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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