#3161B5#3161B5

#3161B5 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.5% C 0.143 H 260.7°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#3161B5
RGBrgb(49, 97, 181)
HSLhsl(218, 57%, 45%)
HSVhsv(218, 73%, 71%)
CMYKcmyk(72.9%, 46.4%, 0%, 29%)
CIE-LABlab(42.06, 13.05, -49.31)
CIE-LCHlch(42.06, 51.01, 284.82°)
OKLaboklab(50.47% -0.0231 -0.1413)
OKLCHoklch(50.47% 0.143 260.7)
XYZxyz(13.8788, 12.5370, 45.3956)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161B5 #B58531
analogous
#31A3B5 #3161B5 #4331B5
triadic
#3161B5 #B53161 #61B531
tetradic
#3161B5 #B531A3 #B58531 #31B543
square
#3161B5 #B531A3 #B58531 #31B543
split-complementary
#3161B5 #B54331 #A3B531
monochromatic
#172D55 #244785 #3161B5 #5380D0 #83A4DD

Accessibility & contrast

On white

5.99
#3161B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3161B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161B5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161B5#FFFFFF#000000##FFFFFF
##3161B51.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#356AB8
Deuteranopia (green-blind)
#175EB3
Tritanopia (blue-blind)
#007582
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3161b5;
/* rgb */ color: rgb(49, 97, 181);
/* oklch */ color: oklch(50.5% 0.143 260.7);
Tailwind
colors: {
  custom: {
    50: '#7a8dcc',
    500: '#3161b5',
    950: '#000000',
  },
}
SCSS
$custom: #3161b5;
$custom-light: #7a8dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3161b5",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 181
  },
  "hsl": {
    "h": 218.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50468,
    "c": 0.14322,
    "h": 260.7
  },
  "luminance": 0.12539
}

Semantic roles & 50–950 ramp

primary
#3161B5
secondary
#C7AB7B
accent
#A947E1
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3161B5

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

Preview Lab → · Contrast checker → · Palette generator →

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