#3159C2#3159C2

#3159C2 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.7% C 0.171 H 265.0°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#3159C2
RGBrgb(49, 89, 194)
HSLhsl(223, 60%, 48%)
HSVhsv(223, 75%, 76%)
CMYKcmyk(74.7%, 54.1%, 0%, 23.9%)
CIE-LABlab(40.72, 23.13, -59.05)
CIE-LCHlch(40.72, 63.42, 291.39°)
OKLaboklab(49.73% -0.0149 -0.1701)
OKLCHoklch(49.73% 0.171 265)
XYZxyz(14.5732, 11.6912, 52.5171)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3159C2 #C29A31
analogous
#31A2C2 #3159C2 #5131C2
triadic
#3159C2 #C23159 #59C231
tetradic
#3159C2 #C231A2 #C29A31 #31C251
square
#3159C2 #C231A2 #C29A31 #31C251
split-complementary
#3159C2 #C25131 #A2C231
monochromatic
#182C60 #254391 #3159C2 #5B7DD6 #8CA3E2

Accessibility & contrast

On white

6.29
#3159C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#3159C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3159C2
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3159C2#FFFFFF#000000##FFFFFF
##3159C21.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3159c2;
/* rgb */ color: rgb(49, 89, 194);
/* oklch */ color: oklch(49.7% 0.171 265.0);
Tailwind
colors: {
  custom: {
    50: '#7d87d5',
    500: '#3159c2',
    950: '#000000',
  },
}
SCSS
$custom: #3159c2;
$custom-light: #7d87d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3159c2",
  "rgb": {
    "r": 49,
    "g": 89,
    "b": 194
  },
  "hsl": {
    "h": 223.448,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4973,
    "c": 0.17079,
    "h": 265
  },
  "luminance": 0.11693
}

Semantic roles & 50–950 ramp

primary
#3159C2
secondary
#CCB883
accent
#B745E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3159C2

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

Preview Lab → · Contrast checker → · Palette generator →

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