#3B42D6#3B42D6

#3B42D6 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.8% C 0.221 H 272.4°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#3B42D6
RGBrgb(59, 66, 214)
HSLhsl(237, 65%, 54%)
HSVhsv(237, 72%, 84%)
CMYKcmyk(72.4%, 69.2%, 0%, 16.1%)
CIE-LABlab(37.26, 45.84, -76.26)
CIE-LCHlch(37.26, 88.98, 301.01°)
OKLaboklab(47.82% 0.0091 -0.2206)
OKLCHoklch(47.82% 0.221 272.4)
XYZxyz(15.8854, 9.6797, 64.6365)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42D6 #D6CF3B
analogous
#3B8FD6 #3B42D6 #813BD6
triadic
#3B42D6 #D63B42 #42D63B
tetradic
#3B42D6 #D63B8F #D6CF3B #3BD681
square
#3B42D6 #D63B8F #D6CF3B #3BD681
split-complementary
#3B42D6 #D6813B #8FD63B
monochromatic
#1A1F7D #252BAF #3B42D6 #6E73E1 #A0A4EB

Accessibility & contrast

On white

7.15
#3B42D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3B42D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42D6
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42D6#FFFFFF#000000##FFFFFF
##3B42D61.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDA
Deuteranopia (green-blind)
#0050D3
Tritanopia (blue-blind)
#006B87
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3b42d6;
/* rgb */ color: rgb(59, 66, 214);
/* oklch */ color: oklch(47.8% 0.221 272.4);
Tailwind
colors: {
  custom: {
    50: '#8777e4',
    500: '#3b42d6',
    950: '#000000',
  },
}
SCSS
$custom: #3b42d6;
$custom-light: #8777e4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42d6",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 237.29,
    "s": 65.401,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47815,
    "c": 0.22078,
    "h": 272.4
  },
  "luminance": 0.09681
}

Semantic roles & 50–950 ramp

primary
#3B42D6
secondary
#D8D595
accent
#E13FE8
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0916
muted
#7E7B84

Preview Lab

Preview with #3B42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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