#3A42BF#3A42BF

#3A42BF is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.6% C 0.192 H 273.1°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#3A42BF
RGBrgb(58, 66, 191)
HSLhsl(236, 53%, 49%)
HSVhsv(236, 70%, 75%)
CMYKcmyk(69.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(35.12, 37.91, -66.42)
CIE-LCHlch(35.12, 76.48, 299.72°)
OKLaboklab(45.61% 0.0104 -0.1918)
OKLCHoklch(45.61% 0.192 273.1)
XYZxyz(13.0940, 8.5563, 50.2416)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A42BF #BFB73A
analogous
#3A85BF #3A42BF #753ABF
triadic
#3A42BF #BF3A42 #42BF3A
tetradic
#3A42BF #BF3A85 #BFB73A #3ABF75
square
#3A42BF #BF3A85 #BFB73A #3ABF75
split-complementary
#3A42BF #BF753A #85BF3A
monochromatic
#1D2261 #2C3290 #3A42BF #666CD0 #9599DF

Accessibility & contrast

On white

7.74
#3A42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#3A42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A42BF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A42BF#FFFFFF#000000##FFFFFF
##3A42BF1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#00637A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #3a42bf;
/* rgb */ color: rgb(58, 66, 191);
/* oklch */ color: oklch(45.6% 0.192 273.1);
Tailwind
colors: {
  custom: {
    50: '#8276d3',
    500: '#3a42bf',
    950: '#000000',
  },
}
SCSS
$custom: #3a42bf;
$custom-light: #8276d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a42bf",
  "rgb": {
    "r": 58,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 236.391,
    "s": 53.414,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45609,
    "c": 0.19212,
    "h": 273.1
  },
  "luminance": 0.08558
}

Semantic roles & 50–950 ramp

primary
#3A42BF
secondary
#CAC68B
accent
#D44BDD
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3A42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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