#3161B3#3161B3

#3161B3 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.3% C 0.140 H 260.4°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#3161B3
RGBrgb(49, 97, 179)
HSLhsl(218, 57%, 45%)
HSVhsv(218, 73%, 70%)
CMYKcmyk(72.6%, 45.8%, 0%, 29.8%)
CIE-LABlab(41.93, 12.30, -48.34)
CIE-LCHlch(41.93, 49.88, 284.27°)
OKLaboklab(50.33% -0.0235 -0.1385)
OKLCHoklch(50.33% 0.14 260.4)
XYZxyz(13.6751, 12.4556, 44.3225)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B3 #B38331
analogous
#31A2B3 #3161B3 #4231B3
triadic
#3161B3 #B33161 #61B331
tetradic
#3161B3 #B331A2 #B38331 #31B342
square
#3161B3 #B331A2 #B38331 #31B342
split-complementary
#3161B3 #B34231 #A2B331
monochromatic
#172D53 #244783 #3161B3 #5280D0 #82A3DD

Accessibility & contrast

On white

6.01
#3161B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#3161B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B3
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B3#FFFFFF#000000##FFFFFF
##3161B31.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3769B6
Deuteranopia (green-blind)
#1C5DB1
Tritanopia (blue-blind)
#007481
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3161b3;
/* rgb */ color: rgb(49, 97, 179);
/* oklch */ color: oklch(50.3% 0.140 260.4);
Tailwind
colors: {
  custom: {
    50: '#7a8dca',
    500: '#3161b3',
    950: '#000000',
  },
}
SCSS
$custom: #3161b3;
$custom-light: #7a8dca;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b3",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 179
  },
  "hsl": {
    "h": 217.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5033,
    "c": 0.14047,
    "h": 260.4
  },
  "luminance": 0.12457
}

Semantic roles & 50–950 ramp

primary
#3161B3
secondary
#C6AA7A
accent
#A848E0
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161B3

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

Preview Lab → · Contrast checker → · Palette generator →

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