#3161B8#3161B8

#3161B8 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.147 H 261.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#3161B8
RGBrgb(49, 97, 184)
HSLhsl(219, 58%, 46%)
HSVhsv(219, 73%, 72%)
CMYKcmyk(73.4%, 47.3%, 0%, 27.8%)
CIE-LABlab(42.25, 14.17, -50.76)
CIE-LCHlch(42.25, 52.70, 285.60°)
OKLaboklab(50.68% -0.0227 -0.1456)
OKLCHoklch(50.68% 0.147 261.2)
XYZxyz(14.1899, 12.6615, 47.0342)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B8 #B88831
analogous
#31A4B8 #3161B8 #4531B8
triadic
#3161B8 #B83161 #61B831
tetradic
#3161B8 #B831A4 #B88831 #31B845
square
#3161B8 #B831A4 #B88831 #31B845
split-complementary
#3161B8 #B84531 #A4B831
monochromatic
#172E57 #244888 #3161B8 #5581D2 #85A5DE

Accessibility & contrast

On white

5.94
#3161B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#3161B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B8
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B8#FFFFFF#000000##FFFFFF
##3161B81.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326ABB
Deuteranopia (green-blind)
#0F5EB6
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3161b8;
/* rgb */ color: rgb(49, 97, 184);
/* oklch */ color: oklch(50.7% 0.147 261.2);
Tailwind
colors: {
  custom: {
    50: '#7b8dce',
    500: '#3161b8',
    950: '#000000',
  },
}
SCSS
$custom: #3161b8;
$custom-light: #7b8dce;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b8",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 184
  },
  "hsl": {
    "h": 218.667,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50676,
    "c": 0.14734,
    "h": 261.2
  },
  "luminance": 0.12663
}

Semantic roles & 50–950 ramp

primary
#3161B8
secondary
#C8AD7D
accent
#AA47E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3161B8

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

Preview Lab → · Contrast checker → · Palette generator →

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