#3B42BB#3B42BB

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

Color values

HEX#3B42BB
RGBrgb(59, 66, 187)
HSLhsl(237, 52%, 48%)
HSVhsv(237, 68%, 73%)
CMYKcmyk(68.4%, 64.7%, 0%, 26.7%)
CIE-LABlab(34.83, 36.65, -64.53)
CIE-LCHlch(34.83, 74.22, 299.60°)
OKLaboklab(45.31% 0.0119 -0.1863)
OKLCHoklch(45.31% 0.187 273.6)
XYZxyz(12.7185, 8.4129, 47.9577)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42BB #BBB43B
analogous
#3B82BB #3B42BB #743BBB
triadic
#3B42BB #BB3B42 #42BB3B
tetradic
#3B42BB #BB3B82 #BBB43B #3BBB74
square
#3B42BB #BB3B82 #BBB43B #3BBB74
split-complementary
#3B42BB #BB743B #82BB3B
monochromatic
#1E215E #2C328C #3B42BB #656BCE #9397DD

Accessibility & contrast

On white

7.83
#3B42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B42BB
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42BB#FFFFFF#000000##FFFFFF
##3B42BB1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.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: #3b42bb;
/* rgb */ color: rgb(59, 66, 187);
/* oklch */ color: oklch(45.3% 0.187 273.6);
Tailwind
colors: {
  custom: {
    50: '#8176d0',
    500: '#3b42bb',
    950: '#000000',
  },
}
SCSS
$custom: #3b42bb;
$custom-light: #8176d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42bb",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 236.719,
    "s": 52.033,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45308,
    "c": 0.18668,
    "h": 273.6
  },
  "luminance": 0.08414
}

Semantic roles & 50–950 ramp

primary
#3B42BB
secondary
#C8C58A
accent
#D44CDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3B42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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