#3A51CF#3A51CF

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

Color values

HEX#3A51CF
RGBrgb(58, 81, 207)
HSLhsl(231, 61%, 52%)
HSVhsv(231, 72%, 81%)
CMYKcmyk(72%, 60.9%, 0%, 18.8%)
CIE-LABlab(40.06, 34.12, -67.64)
CIE-LCHlch(40.06, 75.76, 296.77°)
OKLaboklab(49.66% -0.0007 -0.1953)
OKLCHoklch(49.66% 0.195 269.8)
XYZxyz(15.9460, 11.2877, 60.3578)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A51CF #CFB83A
analogous
#3A9CCF #3A51CF #6E3ACF
triadic
#3A51CF #CF3A51 #51CF3A
tetradic
#3A51CF #CF3A9C #CFB83A #3ACF6E
square
#3A51CF #CF3A9C #CFB83A #3ACF6E
split-complementary
#3A51CF #CF6E3A #9CCF3A
monochromatic
#1C2973 #283BA4 #3A51CF #6B7CDB #9CA8E7

Accessibility & contrast

On white

6.45
#3A51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3A51CF
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A51CF#FFFFFF#000000##FFFFFF
##3A51CF1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a51cf;
/* rgb */ color: rgb(58, 81, 207);
/* oklch */ color: oklch(49.7% 0.195 269.8);
Tailwind
colors: {
  custom: {
    50: '#8481df',
    500: '#3a51cf',
    950: '#000000',
  },
}
SCSS
$custom: #3a51cf;
$custom-light: #8481df;
$custom-dark: #000000;
JSON
{
  "hex": "#3a51cf",
  "rgb": {
    "r": 58,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 230.738,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.4966,
    "c": 0.1953,
    "h": 269.8
  },
  "luminance": 0.11289
}

Semantic roles & 50–950 ramp

primary
#3A51CF
secondary
#D3C992
accent
#CB44E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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