#3151B5#3151B5

#3151B5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.163 H 266.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#3151B5
RGBrgb(49, 81, 181)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 73%, 71%)
CMYKcmyk(72.9%, 55.2%, 0%, 29%)
CIE-LABlab(37.61, 23.49, -56.49)
CIE-LCHlch(37.61, 61.18, 292.58°)
OKLaboklab(47.08% -0.0096 -0.1627)
OKLCHoklch(47.08% 0.163 266.6)
XYZxyz(12.5466, 9.8727, 44.9515)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151B5 #B59531
analogous
#3193B5 #3151B5 #5331B5
triadic
#3151B5 #B53151 #51B531
tetradic
#3151B5 #B53193 #B59531 #31B553
square
#3151B5 #B53193 #B59531 #31B553
split-complementary
#3151B5 #B55331 #93B531
monochromatic
#172655 #243B85 #3151B5 #5371D0 #8399DD

Accessibility & contrast

On white

7.06
#3151B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3151B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151B5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151B5#FFFFFF#000000##FFFFFF
##3151B51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3151b5;
/* rgb */ color: rgb(49, 81, 181);
/* oklch */ color: oklch(47.1% 0.163 266.6);
Tailwind
colors: {
  custom: {
    50: '#7b81cc',
    500: '#3151b5',
    950: '#000000',
  },
}
SCSS
$custom: #3151b5;
$custom-light: #7b81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3151b5",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 225.455,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47083,
    "c": 0.163,
    "h": 266.6
  },
  "luminance": 0.09874
}

Semantic roles & 50–950 ramp

primary
#3151B5
secondary
#C7B47B
accent
#BB47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3151B5

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

Preview Lab → · Contrast checker → · Palette generator →

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