#3B42BA#3B42BA

#3B42BA is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.2% C 0.185 H 273.7°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3B42BA
RGBrgb(59, 66, 186)
HSLhsl(237, 52%, 48%)
HSVhsv(237, 68%, 73%)
CMYKcmyk(68.3%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.74, 36.31, -64.09)
CIE-LCHlch(34.74, 73.66, 299.53°)
OKLaboklab(45.22% 0.0119 -0.185)
OKLCHoklch(45.22% 0.185 273.7)
XYZxyz(12.6118, 8.3702, 47.3958)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42BA #BAB33B
analogous
#3B81BA #3B42BA #733BBA
triadic
#3B42BA #BA3B42 #42BA3B
tetradic
#3B42BA #BA3B81 #BAB33B #3BBA73
square
#3B42BA #BA3B81 #BAB33B #3BBA73
split-complementary
#3B42BA #BA733B #81BA3B
monochromatic
#1E215D #2C328C #3B42BA #646ACE #9397DD

Accessibility & contrast

On white

7.85
#3B42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3B42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42BA
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42BA#FFFFFF#000000##FFFFFF
##3B42BA1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3b42ba;
/* rgb */ color: rgb(59, 66, 186);
/* oklch */ color: oklch(45.2% 0.185 273.7);
Tailwind
colors: {
  custom: {
    50: '#8176d0',
    500: '#3b42ba',
    950: '#000000',
  },
}
SCSS
$custom: #3b42ba;
$custom-light: #8176d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42ba",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 236.693,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45219,
    "c": 0.18536,
    "h": 273.7
  },
  "luminance": 0.08371
}

Semantic roles & 50–950 ramp

primary
#3B42BA
secondary
#C8C489
accent
#D34DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3B42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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