#3A51CC#3A51CC

#3A51CC is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.4% C 0.191 H 269.8°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#3A51CC
RGBrgb(58, 81, 204)
HSLhsl(231, 59%, 51%)
HSVhsv(231, 72%, 80%)
CMYKcmyk(71.6%, 60.3%, 0%, 20%)
CIE-LABlab(39.82, 33.06, -66.30)
CIE-LCHlch(39.82, 74.08, 296.50°)
OKLaboklab(49.41% -0.0007 -0.1914)
OKLCHoklch(49.41% 0.191 269.8)
XYZxyz(15.5827, 11.1424, 58.4445)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51CC #CCB53A
analogous
#3A9ACC #3A51CC #6C3ACC
triadic
#3A51CC #CC3A51 #51CC3A
tetradic
#3A51CC #CC3A9A #CCB53A #3ACC6C
square
#3A51CC #CC3A9A #CCB53A #3ACC6C
split-complementary
#3A51CC #CC6C3A #9ACC3A
monochromatic
#1D2A6F #293CA0 #3A51CC #6B7CD9 #9BA7E5

Accessibility & contrast

On white

6.50
#3A51CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A51CC
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51CC#FFFFFF#000000##FFFFFF
##3A51CC1.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.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: #3a51cc;
/* rgb */ color: rgb(58, 81, 204);
/* oklch */ color: oklch(49.4% 0.191 269.8);
Tailwind
colors: {
  custom: {
    50: '#8381dc',
    500: '#3a51cc',
    950: '#000000',
  },
}
SCSS
$custom: #3a51cc;
$custom-light: #8381dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51cc",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 230.548,
    "s": 58.871,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49406,
    "c": 0.19137,
    "h": 269.8
  },
  "luminance": 0.11144
}

Semantic roles & 50–950 ramp

primary
#3A51CC
secondary
#D1C791
accent
#C946E2
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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