#3155B2#3155B2

#3155B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.154 H 265.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#3155B2
RGBrgb(49, 85, 178)
HSLhsl(223, 57%, 45%)
HSVhsv(223, 72%, 70%)
CMYKcmyk(72.5%, 52.2%, 0%, 30.2%)
CIE-LABlab(38.49, 19.74, -53.30)
CIE-LCHlch(38.49, 56.84, 290.32°)
OKLaboklab(47.67% -0.0132 -0.1533)
OKLCHoklch(47.67% 0.154 265.1)
XYZxyz(12.5482, 10.3630, 43.4498)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155B2 #B28E31
analogous
#3196B2 #3155B2 #4E31B2
triadic
#3155B2 #B23155 #55B231
tetradic
#3155B2 #B23196 #B28E31 #31B24E
square
#3155B2 #B23196 #B28E31 #31B24E
split-complementary
#3155B2 #B24E31 #96B231
monochromatic
#172752 #243E82 #3155B2 #5174CF #819BDC

Accessibility & contrast

On white

6.83
#3155B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3155B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155B2
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155B2#FFFFFF#000000##FFFFFF
##3155B21.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3155b2;
/* rgb */ color: rgb(49, 85, 178);
/* oklch */ color: oklch(47.7% 0.154 265.1);
Tailwind
colors: {
  custom: {
    50: '#7a84ca',
    500: '#3155b2',
    950: '#000000',
  },
}
SCSS
$custom: #3155b2;
$custom-light: #7a84ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3155b2",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 178
  },
  "hsl": {
    "h": 223.256,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47674,
    "c": 0.15385,
    "h": 265.1
  },
  "luminance": 0.10364
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3155B2

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

Preview Lab → · Contrast checker → · Palette generator →

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