#3159B2#3159B2

#3159B2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.5% C 0.149 H 263.6°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#3159B2
RGBrgb(49, 89, 178)
HSLhsl(221, 57%, 45%)
HSVhsv(221, 72%, 70%)
CMYKcmyk(72.5%, 50%, 0%, 30.2%)
CIE-LABlab(39.60, 17.12, -51.51)
CIE-LCHlch(39.60, 54.28, 288.38°)
OKLaboklab(48.52% -0.0166 -0.1479)
OKLCHoklch(48.52% 0.149 263.6)
XYZxyz(12.8720, 11.0107, 43.5577)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159B2 #B28A31
analogous
#319AB2 #3159B2 #4931B2
triadic
#3159B2 #B23159 #59B231
tetradic
#3159B2 #B2319A #B28A31 #31B249
square
#3159B2 #B2319A #B28A31 #31B249
split-complementary
#3159B2 #B24931 #9AB231
monochromatic
#172952 #244182 #3159B2 #5178CF #819DDC

Accessibility & contrast

On white

6.56
#3159B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#3159B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159B2
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159B2#FFFFFF#000000##FFFFFF
##3159B21.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#0058B0
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3159b2;
/* rgb */ color: rgb(49, 89, 178);
/* oklch */ color: oklch(48.5% 0.149 263.6);
Tailwind
colors: {
  custom: {
    50: '#7a87ca',
    500: '#3159b2',
    950: '#000000',
  },
}
SCSS
$custom: #3159b2;
$custom-light: #7a87ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3159b2",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 178
  },
  "hsl": {
    "h": 221.395,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48521,
    "c": 0.14887,
    "h": 263.6
  },
  "luminance": 0.11012
}

Semantic roles & 50–950 ramp

primary
#3159B2
secondary
#C5AE79
accent
#B148E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #3159B2

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

Preview Lab → · Contrast checker → · Palette generator →

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