#3B42BC#3B42BC

#3B42BC is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.4% C 0.188 H 273.6°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#3B42BC
RGBrgb(59, 66, 188)
HSLhsl(237, 52%, 48%)
HSVhsv(237, 69%, 74%)
CMYKcmyk(68.6%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.91, 37.00, -64.98)
CIE-LCHlch(34.91, 74.78, 299.66°)
OKLaboklab(45.4% 0.0118 -0.1876)
OKLCHoklch(45.4% 0.188 273.6)
XYZxyz(12.8259, 8.4559, 48.5234)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42BC #BCB53B
analogous
#3B82BC #3B42BC #743BBC
triadic
#3B42BC #BC3B42 #42BC3B
tetradic
#3B42BC #BC3B82 #BCB53B #3BBC74
square
#3B42BC #BC3B82 #BCB53B #3BBC74
split-complementary
#3B42BC #BC743B #82BC3B
monochromatic
#1E215F #2C328D #3B42BC #656BCF #9498DD

Accessibility & contrast

On white

7.80
#3B42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#3B42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42BC
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42BC#FFFFFF#000000##FFFFFF
##3B42BC1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3b42bc;
/* rgb */ color: rgb(59, 66, 188);
/* oklch */ color: oklch(45.4% 0.188 273.6);
Tailwind
colors: {
  custom: {
    50: '#8276d1',
    500: '#3b42bc',
    950: '#000000',
  },
}
SCSS
$custom: #3b42bc;
$custom-light: #8276d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42bc",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 236.744,
    "s": 52.227,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45398,
    "c": 0.18798,
    "h": 273.6
  },
  "luminance": 0.08457
}

Semantic roles & 50–950 ramp

primary
#3B42BC
secondary
#C9C58A
accent
#D44CDC
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3B42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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