#3151B1#3151B1

#3151B1 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.157 H 266.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#3151B1
RGBrgb(49, 81, 177)
HSLhsl(225, 57%, 44%)
HSVhsv(225, 72%, 69%)
CMYKcmyk(72.3%, 54.2%, 0%, 30.6%)
CIE-LABlab(37.32, 22.00, -54.60)
CIE-LCHlch(37.32, 58.87, 291.94°)
OKLaboklab(46.77% -0.0099 -0.1572)
OKLCHoklch(46.77% 0.157 266.4)
XYZxyz(12.1421, 9.7109, 42.8209)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151B1 #B19131
analogous
#3191B1 #3151B1 #5131B1
triadic
#3151B1 #B13151 #51B131
tetradic
#3151B1 #B13191 #B19131 #31B151
square
#3151B1 #B13191 #B19131 #31B151
split-complementary
#3151B1 #B15131 #91B131
monochromatic
#162551 #243B81 #3151B1 #5170CF #8097DC

Accessibility & contrast

On white

7.14
#3151B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#3151B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151B1
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151B1#FFFFFF#000000##FFFFFF
##3151B11.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045EB4
Deuteranopia (green-blind)
#0052AF
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3151b1;
/* rgb */ color: rgb(49, 81, 177);
/* oklch */ color: oklch(46.8% 0.157 266.4);
Tailwind
colors: {
  custom: {
    50: '#7a81c9',
    500: '#3151b1',
    950: '#000000',
  },
}
SCSS
$custom: #3151b1;
$custom-light: #7a81c9;
$custom-dark: #000000;
JSON
{
  "hex": "#3151b1",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 177
  },
  "hsl": {
    "h": 225,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46768,
    "c": 0.15749,
    "h": 266.4
  },
  "luminance": 0.09712
}

Semantic roles & 50–950 ramp

primary
#3151B1
secondary
#C5B279
accent
#BA48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3151B1

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

Preview Lab → · Contrast checker → · Palette generator →

#3151B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva