#3A42BB#3A42BB

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

Color values

HEX#3A42BB
RGBrgb(58, 66, 187)
HSLhsl(236, 53%, 48%)
HSVhsv(236, 69%, 73%)
CMYKcmyk(69%, 64.7%, 0%, 26.7%)
CIE-LABlab(34.77, 36.52, -64.64)
CIE-LCHlch(34.77, 74.24, 299.47°)
OKLaboklab(45.25% 0.0107 -0.1866)
OKLCHoklch(45.25% 0.187 273.3)
XYZxyz(12.6598, 8.3826, 47.9549)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42BB #BBB33A
analogous
#3A82BB #3A42BB #723ABB
triadic
#3A42BB #BB3A42 #42BB3A
tetradic
#3A42BB #BB3A82 #BBB33A #3ABB72
square
#3A42BB #BB3A82 #BBB33A #3ABB72
split-complementary
#3A42BB #BB723A #82BB3A
monochromatic
#1D215E #2C328C #3A42BB #636ACF #9297DD

Accessibility & contrast

On white

7.85
#3A42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#3A42BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42BB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42BB#FFFFFF#000000##FFFFFF
##3A42BB1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a42bb;
/* rgb */ color: rgb(58, 66, 187);
/* oklch */ color: oklch(45.2% 0.187 273.3);
Tailwind
colors: {
  custom: {
    50: '#8176d0',
    500: '#3a42bb',
    950: '#000000',
  },
}
SCSS
$custom: #3a42bb;
$custom-light: #8176d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42bb",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 236.279,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45248,
    "c": 0.18693,
    "h": 273.3
  },
  "luminance": 0.08384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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