#3161B2#3161B2

#3161B2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.3% C 0.139 H 260.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#3161B2
RGBrgb(49, 97, 178)
HSLhsl(218, 57%, 45%)
HSVhsv(218, 72%, 70%)
CMYKcmyk(72.5%, 45.5%, 0%, 30.2%)
CIE-LABlab(41.87, 11.92, -47.86)
CIE-LCHlch(41.87, 49.32, 283.99°)
OKLaboklab(50.26% -0.0237 -0.1371)
OKLCHoklch(50.26% 0.139 260.2)
XYZxyz(13.5743, 12.4152, 43.7918)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B2 #B28231
analogous
#31A2B2 #3161B2 #4131B2
triadic
#3161B2 #B23161 #61B231
tetradic
#3161B2 #B231A2 #B28231 #31B241
square
#3161B2 #B231A2 #B28231 #31B241
split-complementary
#3161B2 #B24131 #A2B231
monochromatic
#172D52 #244782 #3161B2 #5180CF #81A3DC

Accessibility & contrast

On white

6.03
#3161B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#3161B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B2#FFFFFF#000000##FFFFFF
##3161B21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3869B5
Deuteranopia (green-blind)
#1E5DB0
Tritanopia (blue-blind)
#007481
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3161b2;
/* rgb */ color: rgb(49, 97, 178);
/* oklch */ color: oklch(50.3% 0.139 260.2);
Tailwind
colors: {
  custom: {
    50: '#7a8dc9',
    500: '#3161b2',
    950: '#000000',
  },
}
SCSS
$custom: #3161b2;
$custom-light: #7a8dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b2",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 178
  },
  "hsl": {
    "h": 217.674,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50262,
    "c": 0.13909,
    "h": 260.2
  },
  "luminance": 0.12417
}

Semantic roles & 50–950 ramp

primary
#3161B2
secondary
#C5A979
accent
#A748E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161B2

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

Preview Lab → · Contrast checker → · Palette generator →

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