#3156C7#3156C7

#3156C7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.5% C 0.181 H 266.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#3156C7
RGBrgb(49, 86, 199)
HSLhsl(225, 60%, 49%)
HSVhsv(225, 75%, 78%)
CMYKcmyk(75.4%, 56.8%, 0%, 22%)
CIE-LABlab(40.30, 26.94, -62.65)
CIE-LCHlch(40.30, 68.19, 293.27°)
OKLaboklab(49.53% -0.0124 -0.1807)
OKLCHoklch(49.53% 0.181 266.1)
XYZxyz(14.8996, 11.4304, 55.4428)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156C7 #C7A231
analogous
#31A1C7 #3156C7 #5731C7
triadic
#3156C7 #C73156 #56C731
tetradic
#3156C7 #C731A1 #C7A231 #31C757
square
#3156C7 #C731A1 #C7A231 #31C757
split-complementary
#3156C7 #C75731 #A1C731
monochromatic
#192C65 #254196 #3156C7 #5E7CD7 #8FA4E3

Accessibility & contrast

On white

6.39
#3156C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#3156C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156C7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156C7#FFFFFF#000000##FFFFFF
##3156C71.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CB
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#007286
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3156c7;
/* rgb */ color: rgb(49, 86, 199);
/* oklch */ color: oklch(49.5% 0.181 266.1);
Tailwind
colors: {
  custom: {
    50: '#7f85d9',
    500: '#3156c7',
    950: '#000000',
  },
}
SCSS
$custom: #3156c7;
$custom-light: #7f85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3156c7",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 199
  },
  "hsl": {
    "h": 225.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49527,
    "c": 0.18117,
    "h": 266.1
  },
  "luminance": 0.11432
}

Semantic roles & 50–950 ramp

primary
#3156C7
secondary
#CEBC86
accent
#BC44E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3156C7

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

Preview Lab → · Contrast checker → · Palette generator →

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