#3B42BF#3B42BF

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

Color values

HEX#3B42BF
RGBrgb(59, 66, 191)
HSLhsl(237, 53%, 49%)
HSVhsv(237, 69%, 75%)
CMYKcmyk(69.1%, 65.4%, 0%, 25.1%)
CIE-LABlab(35.18, 38.03, -66.32)
CIE-LCHlch(35.18, 76.45, 299.84°)
OKLaboklab(45.67% 0.0115 -0.1915)
OKLCHoklch(45.67% 0.192 273.4)
XYZxyz(13.1527, 8.5866, 50.2443)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42BF #BFB83B
analogous
#3B84BF #3B42BF #763BBF
triadic
#3B42BF #BF3B42 #42BF3B
tetradic
#3B42BF #BF3B84 #BFB83B #3BBF76
square
#3B42BF #BF3B84 #BFB83B #3BBF76
split-complementary
#3B42BF #BF763B #84BF3B
monochromatic
#1E2261 #2D3290 #3B42BF #676DD0 #969ADF

Accessibility & contrast

On white

7.73
#3B42BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#3B42BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42BF
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42BF#FFFFFF#000000##FFFFFF
##3B42BF1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b42bf;
/* rgb */ color: rgb(59, 66, 191);
/* oklch */ color: oklch(45.7% 0.192 273.4);
Tailwind
colors: {
  custom: {
    50: '#8277d3',
    500: '#3b42bf',
    950: '#000000',
  },
}
SCSS
$custom: #3b42bf;
$custom-light: #8277d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42bf",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 236.818,
    "s": 52.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45669,
    "c": 0.19187,
    "h": 273.4
  },
  "luminance": 0.08588
}

Semantic roles & 50–950 ramp

primary
#3B42BF
secondary
#CAC78C
accent
#D54CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3B42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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