#3159A4#3159A4

#3159A4 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.5% C 0.129 H 261.7°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3159A4
RGBrgb(49, 89, 164)
HSLhsl(219, 54%, 42%)
HSVhsv(219, 70%, 64%)
CMYKcmyk(70.1%, 45.7%, 0%, 35.7%)
CIE-LABlab(38.69, 11.86, -44.69)
CIE-LCHlch(38.69, 46.23, 284.86°)
OKLaboklab(47.53% -0.0187 -0.1279)
OKLCHoklch(47.53% 0.129 261.7)
XYZxyz(11.5375, 10.4769, 36.5290)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159A4 #A47C31
analogous
#3193A4 #3159A4 #4231A4
triadic
#3159A4 #A43159 #59A431
tetradic
#3159A4 #A43193 #A47C31 #31A442
square
#3159A4 #A43193 #A47C31 #31A442
split-complementary
#3159A4 #A44231 #93A431
monochromatic
#152646 #233F75 #3159A4 #4976C9 #7999D7

Accessibility & contrast

On white

6.78
#3159A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3159A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159A4
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159A4#FFFFFF#000000##FFFFFF
##3159A41.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3461A7
Deuteranopia (green-blind)
#1D56A2
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3159a4;
/* rgb */ color: rgb(49, 89, 164);
/* oklch */ color: oklch(47.5% 0.129 261.7);
Tailwind
colors: {
  custom: {
    50: '#7787bf',
    500: '#3159a4',
    950: '#000000',
  },
}
SCSS
$custom: #3159a4;
$custom-light: #7787bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3159a4",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 164
  },
  "hsl": {
    "h": 219.13,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47528,
    "c": 0.12923,
    "h": 261.7
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#3159A4
secondary
#BFA472
accent
#AA4ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3159A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3159A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva