#3156CA#3156CA

#3156CA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.8% C 0.185 H 266.2°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#3156CA
RGBrgb(49, 86, 202)
HSLhsl(225, 61%, 49%)
HSVhsv(225, 76%, 79%)
CMYKcmyk(75.7%, 57.4%, 0%, 20.8%)
CIE-LABlab(40.53, 28.05, -64.01)
CIE-LCHlch(40.53, 69.89, 293.67°)
OKLaboklab(49.77% -0.0122 -0.1847)
OKLCHoklch(49.77% 0.185 266.2)
XYZxyz(15.2513, 11.5711, 57.2953)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3156CA #CAA531
analogous
#31A3CA #3156CA #5931CA
triadic
#3156CA #CA3156 #56CA31
tetradic
#3156CA #CA31A3 #CAA531 #31CA59
square
#3156CA #CA31A3 #CAA531 #31CA59
split-complementary
#3156CA #CA5931 #A3CA31
monochromatic
#192C67 #254199 #3156CA #607DD8 #91A5E4

Accessibility & contrast

On white

6.34
#3156CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3156CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3156CA
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3156CA#FFFFFF#000000##FFFFFF
##3156CA1.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)
#0067CE
Deuteranopia (green-blind)
#0059C8
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3156ca;
/* rgb */ color: rgb(49, 86, 202);
/* oklch */ color: oklch(49.8% 0.185 266.2);
Tailwind
colors: {
  custom: {
    50: '#7f85db',
    500: '#3156ca',
    950: '#000000',
  },
}
SCSS
$custom: #3156ca;
$custom-light: #7f85db;
$custom-dark: #000000;
JSON
{
  "hex": "#3156ca",
  "rgb": {
    "r": 49,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 225.49,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49772,
    "c": 0.18516,
    "h": 266.2
  },
  "luminance": 0.11573
}

Semantic roles & 50–950 ramp

primary
#3156CA
secondary
#CFBE88
accent
#BD44E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3156CA

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

Preview Lab → · Contrast checker → · Palette generator →

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