#3155B1#3155B1

#3155B1 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.152 H 265.0°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#3155B1
RGBrgb(49, 85, 177)
HSLhsl(223, 57%, 44%)
HSVhsv(223, 72%, 69%)
CMYKcmyk(72.3%, 52%, 0%, 30.6%)
CIE-LABlab(38.42, 19.37, -52.83)
CIE-LCHlch(38.42, 56.26, 290.13°)
OKLaboklab(47.6% -0.0133 -0.1519)
OKLCHoklch(47.6% 0.152 265)
XYZxyz(12.4481, 10.3230, 42.9229)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155B1 #B18D31
analogous
#3195B1 #3155B1 #4D31B1
triadic
#3155B1 #B13155 #55B131
tetradic
#3155B1 #B13195 #B18D31 #31B14D
square
#3155B1 #B13195 #B18D31 #31B14D
split-complementary
#3155B1 #B14D31 #95B131
monochromatic
#162751 #243E81 #3155B1 #5174CF #809ADC

Accessibility & contrast

On white

6.85
#3155B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3155B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155B1
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155B1#FFFFFF#000000##FFFFFF
##3155B11.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A61B4
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3155b1;
/* rgb */ color: rgb(49, 85, 177);
/* oklch */ color: oklch(47.6% 0.152 265.0);
Tailwind
colors: {
  custom: {
    50: '#7a84c9',
    500: '#3155b1',
    950: '#000000',
  },
}
SCSS
$custom: #3155b1;
$custom-light: #7a84c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3155b1",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 177
  },
  "hsl": {
    "h": 223.125,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.47599,
    "c": 0.15247,
    "h": 265
  },
  "luminance": 0.10324
}

Semantic roles & 50–950 ramp

primary
#3155B1
secondary
#C5B079
accent
#B548E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3155B1

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

Preview Lab → · Contrast checker → · Palette generator →

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