#3155C4#3155C4

#3155C4 is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.1% C 0.178 H 266.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#3155C4
RGBrgb(49, 85, 196)
HSLhsl(225, 60%, 48%)
HSVhsv(225, 75%, 77%)
CMYKcmyk(75%, 56.6%, 0%, 23.1%)
CIE-LABlab(39.81, 26.47, -61.70)
CIE-LCHlch(39.81, 67.14, 293.22°)
OKLaboklab(49.09% -0.0118 -0.178)
OKLCHoklch(49.09% 0.178 266.2)
XYZxyz(14.4754, 11.1339, 53.6000)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155C4 #C4A031
analogous
#319EC4 #3155C4 #5631C4
triadic
#3155C4 #C43155 #55C431
tetradic
#3155C4 #C4319E #C4A031 #31C456
square
#3155C4 #C4319E #C4A031 #31C456
split-complementary
#3155C4 #C45631 #9EC431
monochromatic
#192B62 #254093 #3155C4 #5C7AD6 #8DA2E2

Accessibility & contrast

On white

6.51
#3155C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#3155C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155C4
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155C4#FFFFFF#000000##FFFFFF
##3155C41.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C8
Deuteranopia (green-blind)
#0057C2
Tritanopia (blue-blind)
#007184
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #3155c4;
/* rgb */ color: rgb(49, 85, 196);
/* oklch */ color: oklch(49.1% 0.178 266.2);
Tailwind
colors: {
  custom: {
    50: '#7e84d7',
    500: '#3155c4',
    950: '#000000',
  },
}
SCSS
$custom: #3155c4;
$custom-light: #7e84d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3155c4",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 196
  },
  "hsl": {
    "h": 225.306,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49087,
    "c": 0.17839,
    "h": 266.2
  },
  "luminance": 0.11135
}

Semantic roles & 50–950 ramp

primary
#3155C4
secondary
#CDBB84
accent
#BC45E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3155C4

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

Preview Lab → · Contrast checker → · Palette generator →

#3155C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva