#3156C2#3156C2

#3156C2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.1% C 0.174 H 265.8°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#3156C2
RGBrgb(49, 86, 194)
HSLhsl(225, 60%, 48%)
HSVhsv(225, 75%, 76%)
CMYKcmyk(74.7%, 55.7%, 0%, 23.9%)
CIE-LABlab(39.92, 25.08, -60.35)
CIE-LCHlch(39.92, 65.36, 292.56°)
OKLaboklab(49.13% -0.0126 -0.174)
OKLCHoklch(49.13% 0.174 265.8)
XYZxyz(14.3286, 11.2020, 52.4355)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156C2 #C29D31
analogous
#319EC2 #3156C2 #5531C2
triadic
#3156C2 #C23156 #56C231
tetradic
#3156C2 #C2319E #C29D31 #31C255
square
#3156C2 #C2319E #C29D31 #31C255
split-complementary
#3156C2 #C25531 #9EC231
monochromatic
#182B60 #254091 #3156C2 #5B7AD6 #8CA2E2

Accessibility & contrast

On white

6.48
#3156C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3156C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156C2
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156C2#FFFFFF#000000##FFFFFF
##3156C21.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0058C0
Tritanopia (blue-blind)
#007183
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3156c2;
/* rgb */ color: rgb(49, 86, 194);
/* oklch */ color: oklch(49.1% 0.174 265.8);
Tailwind
colors: {
  custom: {
    50: '#7e85d5',
    500: '#3156c2',
    950: '#000000',
  },
}
SCSS
$custom: #3156c2;
$custom-light: #7e85d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3156c2",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 194
  },
  "hsl": {
    "h": 224.69,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49125,
    "c": 0.17448,
    "h": 265.8
  },
  "luminance": 0.11204
}

Semantic roles & 50–950 ramp

primary
#3156C2
secondary
#CCB983
accent
#BB45E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3156C2

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

Preview Lab → · Contrast checker → · Palette generator →

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