#3150B0#3150B0

#3150B0 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.157 H 266.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#3150B0
RGBrgb(49, 80, 176)
HSLhsl(225, 56%, 44%)
HSVhsv(225, 72%, 69%)
CMYKcmyk(72.2%, 54.5%, 0%, 31%)
CIE-LABlab(36.97, 22.28, -54.57)
CIE-LCHlch(36.97, 58.94, 292.21°)
OKLaboklab(46.48% -0.0092 -0.1571)
OKLCHoklch(46.48% 0.157 266.7)
XYZxyz(11.9690, 9.5236, 42.2733)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150B0 #B09131
analogous
#3190B0 #3150B0 #5231B0
triadic
#3150B0 #B03150 #50B031
tetradic
#3150B0 #B03190 #B09131 #31B052
square
#3150B0 #B03190 #B09131 #31B052
split-complementary
#3150B0 #B05231 #90B031
monochromatic
#162450 #243A80 #3150B0 #506FCE #8096DC

Accessibility & contrast

On white

7.23
#3150B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#3150B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3150B0
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150B0#FFFFFF#000000##FFFFFF
##3150B01.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015DB3
Deuteranopia (green-blind)
#0051AE
Tritanopia (blue-blind)
#006778
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3150b0;
/* rgb */ color: rgb(49, 80, 176);
/* oklch */ color: oklch(46.5% 0.157 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a80c8',
    500: '#3150b0',
    950: '#000000',
  },
}
SCSS
$custom: #3150b0;
$custom-light: #7a80c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3150b0",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 176
  },
  "hsl": {
    "h": 225.354,
    "s": 56.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46484,
    "c": 0.15737,
    "h": 266.7
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

primary
#3150B0
secondary
#C5B278
accent
#BB48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3150B0

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

Preview Lab → · Contrast checker → · Palette generator →

#3150B0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva