#3159A5#3159A5

#3159A5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.6% C 0.131 H 261.8°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#3159A5
RGBrgb(49, 89, 165)
HSLhsl(219, 54%, 42%)
HSVhsv(219, 70%, 65%)
CMYKcmyk(70.3%, 46.1%, 0%, 35.3%)
CIE-LABlab(38.75, 12.23, -45.18)
CIE-LCHlch(38.75, 46.81, 285.15°)
OKLaboklab(47.6% -0.0185 -0.1293)
OKLCHoklch(47.6% 0.131 261.8)
XYZxyz(11.6281, 10.5131, 37.0064)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159A5 #A57D31
analogous
#3193A5 #3159A5 #4331A5
triadic
#3159A5 #A53159 #59A531
tetradic
#3159A5 #A53193 #A57D31 #31A543
square
#3159A5 #A53193 #A57D31 #31A543
split-complementary
#3159A5 #A54331 #93A531
monochromatic
#152647 #234076 #3159A5 #4A76C9 #799AD7

Accessibility & contrast

On white

6.77
#3159A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #3159A5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159A5#FFFFFF#000000##FFFFFF
##3159A51.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A8
Deuteranopia (green-blind)
#1C56A3
Tritanopia (blue-blind)
#006B77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3159a5;
/* rgb */ color: rgb(49, 89, 165);
/* oklch */ color: oklch(47.6% 0.131 261.8);
Tailwind
colors: {
  custom: {
    50: '#7787c0',
    500: '#3159a5',
    950: '#000000',
  },
}
SCSS
$custom: #3159a5;
$custom-light: #7787c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3159a5",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 165
  },
  "hsl": {
    "h": 219.31,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47597,
    "c": 0.13064,
    "h": 261.8
  },
  "luminance": 0.10514
}

Semantic roles & 50–950 ramp

primary
#3159A5
secondary
#C0A572
accent
#AB4ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3159A5

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

Preview Lab → · Contrast checker → · Palette generator →

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