#3155B7#3155B7

#3155B7 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.1% C 0.161 H 265.5°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#3155B7
RGBrgb(49, 85, 183)
HSLhsl(224, 58%, 45%)
HSVhsv(224, 73%, 72%)
CMYKcmyk(73.2%, 53.6%, 0%, 28.2%)
CIE-LABlab(38.84, 21.62, -55.67)
CIE-LCHlch(38.84, 59.72, 291.22°)
OKLaboklab(48.06% -0.0127 -0.1602)
OKLCHoklch(48.06% 0.161 265.5)
XYZxyz(13.0594, 10.5675, 46.1420)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155B7 #B79331
analogous
#3198B7 #3155B7 #5031B7
triadic
#3155B7 #B73155 #55B731
tetradic
#3155B7 #B73198 #B79331 #31B750
square
#3155B7 #B73198 #B79331 #31B750
split-complementary
#3155B7 #B75031 #98B731
monochromatic
#172856 #243F87 #3155B7 #5476D1 #849CDE

Accessibility & contrast

On white

6.74
#3155B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#3155B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155B7
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155B7#FFFFFF#000000##FFFFFF
##3155B71.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B62BA
Deuteranopia (green-blind)
#0056B5
Tritanopia (blue-blind)
#006D7E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3155b7;
/* rgb */ color: rgb(49, 85, 183);
/* oklch */ color: oklch(48.1% 0.161 265.5);
Tailwind
colors: {
  custom: {
    50: '#7b84cd',
    500: '#3155b7',
    950: '#000000',
  },
}
SCSS
$custom: #3155b7;
$custom-light: #7b84cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3155b7",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 183
  },
  "hsl": {
    "h": 223.881,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48057,
    "c": 0.16075,
    "h": 265.5
  },
  "luminance": 0.10569
}

Semantic roles & 50–950 ramp

primary
#3155B7
secondary
#C8B37C
accent
#B847E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3155B7

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

Preview Lab → · Contrast checker → · Palette generator →

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