#3A42BD#3A42BD

#3A42BD is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.4% C 0.190 H 273.2°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#3A42BD
RGBrgb(58, 66, 189)
HSLhsl(236, 53%, 48%)
HSVhsv(236, 69%, 74%)
CMYKcmyk(69.3%, 65.1%, 0%, 25.9%)
CIE-LABlab(34.94, 37.22, -65.53)
CIE-LCHlch(34.94, 75.36, 299.59°)
OKLaboklab(45.43% 0.0106 -0.1892)
OKLCHoklch(45.43% 0.19 273.2)
XYZxyz(12.8754, 8.4689, 49.0904)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42BD #BDB53A
analogous
#3A83BD #3A42BD #733ABD
triadic
#3A42BD #BD3A42 #42BD3A
tetradic
#3A42BD #BD3A83 #BDB53A #3ABD73
square
#3A42BD #BD3A83 #BDB53A #3ABD73
split-complementary
#3A42BD #BD733A #83BD3A
monochromatic
#1D215F #2C328E #3A42BD #656BD0 #9398DE

Accessibility & contrast

On white

7.80
#3A42BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3A42BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42BD
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42BD#FFFFFF#000000##FFFFFF
##3A42BD1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C1
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3a42bd;
/* rgb */ color: rgb(58, 66, 189);
/* oklch */ color: oklch(45.4% 0.190 273.2);
Tailwind
colors: {
  custom: {
    50: '#8176d2',
    500: '#3a42bd',
    950: '#000000',
  },
}
SCSS
$custom: #3a42bd;
$custom-light: #8176d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42bd",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 236.336,
    "s": 53.036,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45428,
    "c": 0.18954,
    "h": 273.2
  },
  "luminance": 0.0847
}

Semantic roles & 50–950 ramp

primary
#3A42BD
secondary
#C9C58A
accent
#D44BDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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