#3155C5#3155C5

#3155C5 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.2% C 0.180 H 266.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#3155C5
RGBrgb(49, 85, 197)
HSLhsl(225, 60%, 48%)
HSVhsv(225, 75%, 77%)
CMYKcmyk(75.1%, 56.9%, 0%, 22.7%)
CIE-LABlab(39.88, 26.85, -62.16)
CIE-LCHlch(39.88, 67.71, 293.36°)
OKLaboklab(49.17% -0.0118 -0.1793)
OKLCHoklch(49.17% 0.18 266.2)
XYZxyz(14.5896, 11.1796, 54.2015)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155C5 #C5A131
analogous
#319FC5 #3155C5 #5731C5
triadic
#3155C5 #C53155 #55C531
tetradic
#3155C5 #C5319F #C5A131 #31C557
square
#3155C5 #C5319F #C5A131 #31C557
split-complementary
#3155C5 #C55731 #9FC531
monochromatic
#192B63 #254094 #3155C5 #5D7AD7 #8EA2E3

Accessibility & contrast

On white

6.49
#3155C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#3155C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155C5
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155C5#FFFFFF#000000##FFFFFF
##3155C51.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3155c5;
/* rgb */ color: rgb(49, 85, 197);
/* oklch */ color: oklch(49.2% 0.180 266.2);
Tailwind
colors: {
  custom: {
    50: '#7e84d7',
    500: '#3155c5',
    950: '#000000',
  },
}
SCSS
$custom: #3155c5;
$custom-light: #7e84d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3155c5",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 197
  },
  "hsl": {
    "h": 225.405,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49168,
    "c": 0.17973,
    "h": 266.2
  },
  "luminance": 0.11181
}

Semantic roles & 50–950 ramp

primary
#3155C5
secondary
#CDBC85
accent
#BD44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3155C5

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

Preview Lab → · Contrast checker → · Palette generator →

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