#3166B2#3166B2

#3166B2 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 51.4% C 0.133 H 257.8°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#3166B2
RGBrgb(49, 102, 178)
HSLhsl(215, 57%, 45%)
HSVhsv(215, 72%, 70%)
CMYKcmyk(72.5%, 42.7%, 0%, 30.2%)
CIE-LABlab(43.31, 8.72, -45.54)
CIE-LCHlch(43.31, 46.37, 280.84°)
OKLaboklab(51.38% -0.0283 -0.1302)
OKLCHoklch(51.38% 0.133 257.8)
XYZxyz(14.0509, 13.3685, 43.9507)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3166B2 #B27D31
analogous
#31A7B2 #3166B2 #3D31B2
triadic
#3166B2 #B23166 #66B231
tetradic
#3166B2 #B231A7 #B27D31 #31B23D
square
#3166B2 #B231A7 #B27D31 #31B23D
split-complementary
#3166B2 #B23D31 #A7B231
monochromatic
#172F52 #244B82 #3166B2 #5185CF #81A7DC

Accessibility & contrast

On white

5.72
#3166B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#3166B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3166B2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3166B2#FFFFFF#000000##FFFFFF
##3166B21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#2B61B0
Tritanopia (blue-blind)
#007883
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #3166b2;
/* rgb */ color: rgb(49, 102, 178);
/* oklch */ color: oklch(51.4% 0.133 257.8);
Tailwind
colors: {
  custom: {
    50: '#7991c9',
    500: '#3166b2',
    950: '#000000',
  },
}
SCSS
$custom: #3166b2;
$custom-light: #7991c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3166b2",
  "rgb": {
    "r": 49,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 215.349,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51378,
    "c": 0.1332,
    "h": 257.8
  },
  "luminance": 0.1337
}

Semantic roles & 50–950 ramp

primary
#3166B2
secondary
#C5A679
accent
#A148E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3166B2

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

Preview Lab → · Contrast checker → · Palette generator →

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