#3A51C7#3A51C7

#3A51C7 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.0% C 0.185 H 269.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#3A51C7
RGBrgb(58, 81, 199)
HSLhsl(230, 56%, 50%)
HSVhsv(230, 71%, 78%)
CMYKcmyk(70.9%, 59.3%, 0%, 22%)
CIE-LABlab(39.42, 31.27, -64.05)
CIE-LCHlch(39.42, 71.27, 296.02°)
OKLaboklab(48.99% -0.0007 -0.1848)
OKLCHoklch(48.99% 0.185 269.8)
XYZxyz(14.9926, 10.9064, 55.3368)
Luminance0.1091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51C7 #C7B03A
analogous
#3A97C7 #3A51C7 #6A3AC7
triadic
#3A51C7 #C73A51 #51C73A
tetradic
#3A51C7 #C73A97 #C7B03A #3AC76A
square
#3A51C7 #C73A97 #C7B03A #3AC76A
split-complementary
#3A51C7 #C76A3A #97C73A
monochromatic
#1E2A69 #2B3D98 #3A51C7 #6A7BD5 #99A5E2

Accessibility & contrast

On white

6.60
#3A51C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#3A51C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51C7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51C7#FFFFFF#000000##FFFFFF
##3A51C71.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CB
Deuteranopia (green-blind)
#0057C5
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a51c7;
/* rgb */ color: rgb(58, 81, 199);
/* oklch */ color: oklch(49.0% 0.185 269.8);
Tailwind
colors: {
  custom: {
    50: '#8281d9',
    500: '#3a51c7',
    950: '#000000',
  },
}
SCSS
$custom: #3a51c7;
$custom-light: #8281d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51c7",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 230.213,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48987,
    "c": 0.18476,
    "h": 269.8
  },
  "luminance": 0.10908
}

Semantic roles & 50–950 ramp

primary
#3A51C7
secondary
#CEC48F
accent
#C749DF
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A51C7

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

Preview Lab → · Contrast checker → · Palette generator →

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