#3150B5#3150B5

#3150B5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.164 H 266.9°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#3150B5
RGBrgb(49, 80, 181)
HSLhsl(226, 57%, 45%)
HSVhsv(226, 73%, 71%)
CMYKcmyk(72.9%, 55.8%, 0%, 29%)
CIE-LABlab(37.34, 24.15, -56.92)
CIE-LCHlch(37.34, 61.83, 292.99°)
OKLaboklab(46.88% -0.0088 -0.164)
OKLCHoklch(46.88% 0.164 266.9)
XYZxyz(12.4729, 9.7252, 44.9269)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150B5 #B59631
analogous
#3192B5 #3150B5 #5431B5
triadic
#3150B5 #B53150 #50B531
tetradic
#3150B5 #B53192 #B59631 #31B554
square
#3150B5 #B53192 #B59631 #31B554
split-complementary
#3150B5 #B55431 #92B531
monochromatic
#172555 #243B85 #3150B5 #5370D0 #8398DD

Accessibility & contrast

On white

7.13
#3150B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3150B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3150B5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150B5#FFFFFF#000000##FFFFFF
##3150B51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3150b5;
/* rgb */ color: rgb(49, 80, 181);
/* oklch */ color: oklch(46.9% 0.164 266.9);
Tailwind
colors: {
  custom: {
    50: '#7b80cc',
    500: '#3150b5',
    950: '#000000',
  },
}
SCSS
$custom: #3150b5;
$custom-light: #7b80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3150b5",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 181
  },
  "hsl": {
    "h": 225.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46881,
    "c": 0.16426,
    "h": 266.9
  },
  "luminance": 0.09726
}

Semantic roles & 50–950 ramp

primary
#3150B5
secondary
#C7B57B
accent
#BD47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3150B5

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

Preview Lab → · Contrast checker → · Palette generator →

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