#3C42BA#3C42BA

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

Color values

HEX#3C42BA
RGBrgb(60, 66, 186)
HSLhsl(237, 51%, 48%)
HSVhsv(237, 68%, 73%)
CMYKcmyk(67.7%, 64.5%, 0%, 27.1%)
CIE-LABlab(34.80, 36.44, -63.98)
CIE-LCHlch(34.80, 73.63, 299.66°)
OKLaboklab(45.28% 0.0131 -0.1846)
OKLCHoklch(45.28% 0.185 274)
XYZxyz(12.6717, 8.4011, 47.3986)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C42BA #BAB43C
analogous
#3C81BA #3C42BA #753CBA
triadic
#3C42BA #BA3C42 #42BA3C
tetradic
#3C42BA #BA3C81 #BAB43C #3CBA75
square
#3C42BA #BA3C81 #BAB43C #3CBA75
split-complementary
#3C42BA #BA753C #81BA3C
monochromatic
#1E215D #2D328C #3C42BA #666BCE #9497DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3C42BA#FFFFFF#000000##FFFFFF
##3C42BA1.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)
#0058BE
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#006178
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3c42ba;
/* rgb */ color: rgb(60, 66, 186);
/* oklch */ color: oklch(45.3% 0.185 274.0);
Tailwind
colors: {
  custom: {
    50: '#8276d0',
    500: '#3c42ba',
    950: '#000000',
  },
}
SCSS
$custom: #3c42ba;
$custom-light: #8276d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c42ba",
  "rgb": {
    "r": 60,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 237.143,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45281,
    "c": 0.18511,
    "h": 274
  },
  "luminance": 0.08402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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