#3161BF#3161BF

#3161BF is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.2% C 0.157 H 262.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#3161BF
RGBrgb(49, 97, 191)
HSLhsl(220, 59%, 47%)
HSVhsv(220, 74%, 75%)
CMYKcmyk(74.3%, 49.2%, 0%, 25.1%)
CIE-LABlab(42.71, 16.81, -54.10)
CIE-LCHlch(42.71, 56.65, 287.26°)
OKLaboklab(51.17% -0.0216 -0.1554)
OKLCHoklch(51.17% 0.157 262.1)
XYZxyz(14.9419, 12.9623, 50.9946)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3161BF #BF8F31
analogous
#31A8BF #3161BF #4831BF
triadic
#3161BF #BF3161 #61BF31
tetradic
#3161BF #BF31A8 #BF8F31 #31BF48
square
#3161BF #BF31A8 #BF8F31 #31BF48
split-complementary
#3161BF #BF4831 #A8BF31
monochromatic
#18305E #25488E #3161BF #5983D4 #8AA7E1

Accessibility & contrast

On white

5.85
#3161BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#3161BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3161BF
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3161BF#FFFFFF#000000##FFFFFF
##3161BF1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6CC2
Deuteranopia (green-blind)
#005FBD
Tritanopia (blue-blind)
#007787
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3161bf;
/* rgb */ color: rgb(49, 97, 191);
/* oklch */ color: oklch(51.2% 0.157 262.1);
Tailwind
colors: {
  custom: {
    50: '#7c8dd3',
    500: '#3161bf',
    950: '#000000',
  },
}
SCSS
$custom: #3161bf;
$custom-light: #7c8dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#3161bf",
  "rgb": {
    "r": 49,
    "g": 97,
    "b": 191
  },
  "hsl": {
    "h": 219.718,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51174,
    "c": 0.15692,
    "h": 262.1
  },
  "luminance": 0.12964
}

Semantic roles & 50–950 ramp

primary
#3161BF
secondary
#CBB281
accent
#AD45E2
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #3161BF

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

Preview Lab → · Contrast checker → · Palette generator →

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