#3155A5#3155A5

#3155A5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.7% C 0.136 H 263.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#3155A5
RGBrgb(49, 85, 165)
HSLhsl(221, 54%, 42%)
HSVhsv(221, 70%, 65%)
CMYKcmyk(70.3%, 48.5%, 0%, 35.3%)
CIE-LABlab(37.60, 14.86, -47.02)
CIE-LCHlch(37.60, 49.31, 287.53°)
OKLaboklab(46.72% -0.0148 -0.1348)
OKLCHoklch(46.72% 0.136 263.7)
XYZxyz(11.3043, 9.8654, 36.8985)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155A5 #A58131
analogous
#318FA5 #3155A5 #4731A5
triadic
#3155A5 #A53155 #55A531
tetradic
#3155A5 #A5318F #A58131 #31A547
square
#3155A5 #A5318F #A58131 #31A547
split-complementary
#3155A5 #A54731 #8FA531
monochromatic
#152447 #233D76 #3155A5 #4A71C9 #7996D7

Accessibility & contrast

On white

7.06
#3155A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3155A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3155A5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155A5#FFFFFF#000000##FFFFFF
##3155A51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5EA8
Deuteranopia (green-blind)
#0C53A3
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3155a5;
/* rgb */ color: rgb(49, 85, 165);
/* oklch */ color: oklch(46.7% 0.136 263.7);
Tailwind
colors: {
  custom: {
    50: '#7784c0',
    500: '#3155a5',
    950: '#000000',
  },
}
SCSS
$custom: #3155a5;
$custom-light: #7784c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3155a5",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 165
  },
  "hsl": {
    "h": 221.379,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46716,
    "c": 0.13563,
    "h": 263.7
  },
  "luminance": 0.09867
}

Semantic roles & 50–950 ramp

primary
#3155A5
secondary
#C0A872
accent
#B04ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3155A5

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

Preview Lab → · Contrast checker → · Palette generator →

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