#3159BF#3159BF

#3159BF is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.5% C 0.167 H 264.8°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#3159BF
RGBrgb(49, 89, 191)
HSLhsl(223, 59%, 47%)
HSVhsv(223, 74%, 75%)
CMYKcmyk(74.3%, 53.4%, 0%, 25.1%)
CIE-LABlab(40.50, 22.00, -57.66)
CIE-LCHlch(40.50, 61.71, 290.89°)
OKLaboklab(49.5% -0.0152 -0.166)
OKLCHoklch(49.5% 0.167 264.8)
XYZxyz(14.2396, 11.5578, 50.7605)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159BF #BF9731
analogous
#31A0BF #3159BF #5031BF
triadic
#3159BF #BF3159 #59BF31
tetradic
#3159BF #BF31A0 #BF9731 #31BF50
square
#3159BF #BF31A0 #BF9731 #31BF50
split-complementary
#3159BF #BF5031 #A0BF31
monochromatic
#182C5E #25428E #3159BF #597CD4 #8AA2E1

Accessibility & contrast

On white

6.34
#3159BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3159BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159BF
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159BF#FFFFFF#000000##FFFFFF
##3159BF1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A66C3
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3159bf;
/* rgb */ color: rgb(49, 89, 191);
/* oklch */ color: oklch(49.5% 0.167 264.8);
Tailwind
colors: {
  custom: {
    50: '#7d87d3',
    500: '#3159bf',
    950: '#000000',
  },
}
SCSS
$custom: #3159bf;
$custom-light: #7d87d3;
$custom-dark: #000000;
JSON
{
  "hex": "#3159bf",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 191
  },
  "hsl": {
    "h": 223.099,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49498,
    "c": 0.16673,
    "h": 264.8
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#3159BF
secondary
#CBB681
accent
#B645E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3159BF

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

Preview Lab → · Contrast checker → · Palette generator →

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