#3B51CF#3B51CF

#3B51CF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.7% C 0.195 H 270.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#3B51CF
RGBrgb(59, 81, 207)
HSLhsl(231, 61%, 52%)
HSVhsv(231, 71%, 81%)
CMYKcmyk(71.5%, 60.9%, 0%, 18.8%)
CIE-LABlab(40.11, 34.25, -67.55)
CIE-LCHlch(40.11, 75.74, 296.88°)
OKLaboklab(49.71% 0.0002 -0.195)
OKLCHoklch(49.71% 0.195 270.1)
XYZxyz(16.0047, 11.3180, 60.3605)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B51CF #CFB93B
analogous
#3B9BCF #3B51CF #6F3BCF
triadic
#3B51CF #CF3B51 #51CF3B
tetradic
#3B51CF #CF3B9B #CFB93B #3BCF6F
square
#3B51CF #CF3B9B #CFB93B #3BCF6F
split-complementary
#3B51CF #CF6F3B #9BCF3B
monochromatic
#1C2973 #283BA5 #3B51CF #6C7DDB #9DA8E7

Accessibility & contrast

On white

6.43
#3B51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#3B51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3B51CF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B51CF#FFFFFF#000000##FFFFFF
##3B51CF1.006.433.266.43
#FFFFFF6.431.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D3
Deuteranopia (green-blind)
#0058CD
Tritanopia (blue-blind)
#007188
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3b51cf;
/* rgb */ color: rgb(59, 81, 207);
/* oklch */ color: oklch(49.7% 0.195 270.1);
Tailwind
colors: {
  custom: {
    50: '#8581df',
    500: '#3b51cf',
    950: '#000000',
  },
}
SCSS
$custom: #3b51cf;
$custom-light: #8581df;
$custom-dark: #000000;
JSON
{
  "hex": "#3b51cf",
  "rgb": {
    "r": 59,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 231.081,
    "s": 60.656,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4971,
    "c": 0.19503,
    "h": 270.1
  },
  "luminance": 0.1132
}

Semantic roles & 50–950 ramp

primary
#3B51CF
secondary
#D3CA93
accent
#CC44E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3B51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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