#3A51C9#3A51C9

#3A51C9 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.2% C 0.187 H 269.8°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#3A51C9
RGBrgb(58, 81, 201)
HSLhsl(230, 57%, 51%)
HSVhsv(230, 71%, 79%)
CMYKcmyk(71.1%, 59.7%, 0%, 21.2%)
CIE-LABlab(39.58, 31.98, -64.95)
CIE-LCHlch(39.58, 72.40, 296.22°)
OKLaboklab(49.15% -0.0007 -0.1874)
OKLCHoklch(49.15% 0.187 269.8)
XYZxyz(15.2264, 10.9999, 56.5678)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51C9 #C9B23A
analogous
#3A98C9 #3A51C9 #6A3AC9
triadic
#3A51C9 #C93A51 #51C93A
tetradic
#3A51C9 #C93A98 #C9B23A #3AC96A
square
#3A51C9 #C93A98 #C9B23A #3AC96A
split-complementary
#3A51C9 #C96A3A #98C93A
monochromatic
#1D2A6B #2B3D9B #3A51C9 #6A7BD6 #9AA6E3

Accessibility & contrast

On white

6.56
#3A51C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#3A51C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51C9
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51C9#FFFFFF#000000##FFFFFF
##3A51C91.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#006F85
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3a51c9;
/* rgb */ color: rgb(58, 81, 201);
/* oklch */ color: oklch(49.2% 0.187 269.8);
Tailwind
colors: {
  custom: {
    50: '#8381da',
    500: '#3a51c9',
    950: '#000000',
  },
}
SCSS
$custom: #3a51c9;
$custom-light: #8381da;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51c9",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 201
  },
  "hsl": {
    "h": 230.35,
    "s": 56.972,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49154,
    "c": 0.18742,
    "h": 269.8
  },
  "luminance": 0.11001
}

Semantic roles & 50–950 ramp

primary
#3A51C9
secondary
#CFC590
accent
#C848E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A51C9

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

Preview Lab → · Contrast checker → · Palette generator →

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