#3B51CC#3B51CC

#3B51CC is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.5% C 0.191 H 270.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#3B51CC
RGBrgb(59, 81, 204)
HSLhsl(231, 59%, 52%)
HSVhsv(231, 71%, 80%)
CMYKcmyk(71.1%, 60.3%, 0%, 20%)
CIE-LABlab(39.87, 33.18, -66.21)
CIE-LCHlch(39.87, 74.06, 296.62°)
OKLaboklab(49.46% 0.0003 -0.1911)
OKLCHoklch(49.46% 0.191 270.1)
XYZxyz(15.6414, 11.1727, 58.4473)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B51CC #CCB63B
analogous
#3B99CC #3B51CC #6E3BCC
triadic
#3B51CC #CC3B51 #51CC3B
tetradic
#3B51CC #CC3B99 #CCB63B #3BCC6E
square
#3B51CC #CC3B99 #CCB63B #3BCC6E
split-complementary
#3B51CC #CC6E3B #99CC3B
monochromatic
#1D2A70 #2A3CA0 #3B51CC #6C7CD9 #9CA7E5

Accessibility & contrast

On white

6.49
#3B51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3B51CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B51CC
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B51CC#FFFFFF#000000##FFFFFF
##3B51CC1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D0
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3b51cc;
/* rgb */ color: rgb(59, 81, 204);
/* oklch */ color: oklch(49.5% 0.191 270.1);
Tailwind
colors: {
  custom: {
    50: '#8481dc',
    500: '#3b51cc',
    950: '#000000',
  },
}
SCSS
$custom: #3b51cc;
$custom-light: #8481dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3b51cc",
  "rgb": {
    "r": 59,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 230.897,
    "s": 58.704,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49457,
    "c": 0.1911,
    "h": 270.1
  },
  "luminance": 0.11174
}

Semantic roles & 50–950 ramp

primary
#3B51CC
secondary
#D1C892
accent
#CA46E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3B51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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