#3B42CC#3B42CC

#3B42CC is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 46.9% C 0.208 H 272.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#3B42CC
RGBrgb(59, 66, 204)
HSLhsl(237, 59%, 52%)
HSVhsv(237, 71%, 80%)
CMYKcmyk(71.1%, 67.6%, 0%, 20%)
CIE-LABlab(36.34, 42.48, -72.00)
CIE-LCHlch(36.34, 83.59, 300.54°)
OKLaboklab(46.87% 0.0103 -0.2081)
OKLCHoklch(46.87% 0.208 272.8)
XYZxyz(14.6473, 9.1844, 58.1159)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B42CC #CCC53B
analogous
#3B8BCC #3B42CC #7C3BCC
triadic
#3B42CC #CC3B42 #42CC3B
tetradic
#3B42CC #CC3B8B #CCC53B #3BCC7C
square
#3B42CC #CC3B8B #CCC53B #3BCC7C
split-complementary
#3B42CC #CC7C3B #8BCC3B
monochromatic
#1D2170 #2A2FA0 #3B42CC #6C71D9 #9CA0E5

Accessibility & contrast

On white

7.40
#3B42CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#3B42CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B42CC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B42CC#FFFFFF#000000##FFFFFF
##3B42CC1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #3b42cc;
/* rgb */ color: rgb(59, 66, 204);
/* oklch */ color: oklch(46.9% 0.208 272.8);
Tailwind
colors: {
  custom: {
    50: '#8577dd',
    500: '#3b42cc',
    950: '#000000',
  },
}
SCSS
$custom: #3b42cc;
$custom-light: #8577dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b42cc",
  "rgb": {
    "r": 59,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 237.103,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46868,
    "c": 0.20839,
    "h": 272.8
  },
  "luminance": 0.09186
}

Semantic roles & 50–950 ramp

primary
#3B42CC
secondary
#D1CE92
accent
#DA46E2
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #3B42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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