#3155B5#3155B5

#3155B5 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.9% C 0.158 H 265.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3155B5
RGBrgb(49, 85, 181)
HSLhsl(224, 57%, 45%)
HSVhsv(224, 73%, 71%)
CMYKcmyk(72.9%, 53%, 0%, 29%)
CIE-LABlab(38.70, 20.87, -54.73)
CIE-LCHlch(38.70, 58.57, 290.87°)
OKLaboklab(47.9% -0.0129 -0.1575)
OKLCHoklch(47.9% 0.158 265.3)
XYZxyz(12.8527, 10.4848, 45.0535)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155B5 #B59131
analogous
#3197B5 #3155B5 #4F31B5
triadic
#3155B5 #B53155 #55B531
tetradic
#3155B5 #B53197 #B59131 #31B54F
square
#3155B5 #B53197 #B59131 #31B54F
split-complementary
#3155B5 #B54F31 #97B531
monochromatic
#172855 #243E85 #3155B5 #5375D0 #839CDD

Accessibility & contrast

On white

6.78
#3155B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3155B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155B5
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155B5#FFFFFF#000000##FFFFFF
##3155B51.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1161B8
Deuteranopia (green-blind)
#0055B3
Tritanopia (blue-blind)
#006C7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3155b5;
/* rgb */ color: rgb(49, 85, 181);
/* oklch */ color: oklch(47.9% 0.158 265.3);
Tailwind
colors: {
  custom: {
    50: '#7b84cc',
    500: '#3155b5',
    950: '#000000',
  },
}
SCSS
$custom: #3155b5;
$custom-light: #7b84cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3155b5",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 181
  },
  "hsl": {
    "h": 223.636,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47903,
    "c": 0.158,
    "h": 265.3
  },
  "luminance": 0.10486
}

Semantic roles & 50–950 ramp

primary
#3155B5
secondary
#C7B27B
accent
#B747E1
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3155B5

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

Preview Lab → · Contrast checker → · Palette generator →

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