#3156C1#3156C1

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

Color values

HEX#3156C1
RGBrgb(49, 86, 193)
HSLhsl(225, 60%, 47%)
HSVhsv(225, 75%, 76%)
CMYKcmyk(74.6%, 55.4%, 0%, 24.3%)
CIE-LABlab(39.84, 24.71, -59.89)
CIE-LCHlch(39.84, 64.79, 292.42°)
OKLaboklab(49.05% -0.0127 -0.1727)
OKLCHoklch(49.05% 0.173 265.8)
XYZxyz(14.2167, 11.1572, 51.8460)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156C1 #C19C31
analogous
#319EC1 #3156C1 #5431C1
triadic
#3156C1 #C13156 #56C131
tetradic
#3156C1 #C1319E #C19C31 #31C154
square
#3156C1 #C1319E #C19C31 #31C154
split-complementary
#3156C1 #C15431 #9EC131
monochromatic
#182B5F #254090 #3156C1 #5A7AD5 #8BA1E2

Accessibility & contrast

On white

6.50
#3156C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3156C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156C1
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156C1#FFFFFF#000000##FFFFFF
##3156C11.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C5
Deuteranopia (green-blind)
#0058BF
Tritanopia (blue-blind)
#007083
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3156c1;
/* rgb */ color: rgb(49, 86, 193);
/* oklch */ color: oklch(49.0% 0.173 265.8);
Tailwind
colors: {
  custom: {
    50: '#7d85d4',
    500: '#3156c1',
    950: '#000000',
  },
}
SCSS
$custom: #3156c1;
$custom-light: #7d85d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3156c1",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 193
  },
  "hsl": {
    "h": 224.583,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49045,
    "c": 0.17313,
    "h": 265.8
  },
  "luminance": 0.11159
}

Semantic roles & 50–950 ramp

primary
#3156C1
secondary
#CCB982
accent
#BA45E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #3156C1

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

Preview Lab → · Contrast checker → · Palette generator →

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