#3A51DC#3A51DC

#3A51DC is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 50.8% C 0.212 H 269.7°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#3A51DC
RGBrgb(58, 81, 220)
HSLhsl(231, 70%, 55%)
HSVhsv(231, 74%, 86%)
CMYKcmyk(73.6%, 63.2%, 0%, 13.7%)
CIE-LABlab(41.14, 38.72, -73.34)
CIE-LCHlch(41.14, 82.93, 297.83°)
OKLaboklab(50.79% -0.0011 -0.212)
OKLCHoklch(50.79% 0.212 269.7)
XYZxyz(17.6012, 11.9498, 69.0752)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51DC #DCC53A
analogous
#3AA2DC #3A51DC #743ADC
triadic
#3A51DC #DC3A51 #51DC3A
tetradic
#3A51DC #DC3AA2 #DCC53A #3ADC74
square
#3A51DC #DC3AA2 #DCC53A #3ADC74
split-complementary
#3A51DC #DC743A #A2DC3A
monochromatic
#172784 #2136B8 #3A51DC #6E7FE5 #A2ADEE

Accessibility & contrast

On white

6.19
#3A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#3A51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A51DC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51DC#FFFFFF#000000##FFFFFF
##3A51DC1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#005AD9
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #3a51dc;
/* rgb */ color: rgb(58, 81, 220);
/* oklch */ color: oklch(50.8% 0.212 269.7);
Tailwind
colors: {
  custom: {
    50: '#8782e8',
    500: '#3a51dc',
    950: '#000000',
  },
}
SCSS
$custom: #3a51dc;
$custom-light: #8782e8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51dc",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 231.481,
    "s": 69.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50786,
    "c": 0.21201,
    "h": 269.7
  },
  "luminance": 0.11952
}

Semantic roles & 50–950 ramp

primary
#3A51DC
secondary
#DBD197
accent
#D33BED
background
#F9F7FE
surface
#F1EEFD
border
#CBC9D5
text
#0D0A16
muted
#7E7C84

Preview Lab

Preview with #3A51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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