#3150B8#3150B8

#3150B8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.168 H 267.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#3150B8
RGBrgb(49, 80, 184)
HSLhsl(226, 58%, 46%)
HSVhsv(226, 73%, 72%)
CMYKcmyk(73.4%, 56.5%, 0%, 27.8%)
CIE-LABlab(37.57, 25.27, -58.32)
CIE-LCHlch(37.57, 63.56, 293.43°)
OKLaboklab(47.12% -0.0087 -0.1681)
OKLCHoklch(47.12% 0.168 267)
XYZxyz(12.7840, 9.8496, 46.5655)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150B8 #B89931
analogous
#3193B8 #3150B8 #5531B8
triadic
#3150B8 #B83150 #50B831
tetradic
#3150B8 #B83193 #B89931 #31B855
square
#3150B8 #B83193 #B89931 #31B855
split-complementary
#3150B8 #B85531 #93B831
monochromatic
#172657 #243B88 #3150B8 #5571D2 #8599DE

Accessibility & contrast

On white

7.07
#3150B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3150B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3150B8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150B8#FFFFFF#000000##FFFFFF
##3150B81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3150b8;
/* rgb */ color: rgb(49, 80, 184);
/* oklch */ color: oklch(47.1% 0.168 267.0);
Tailwind
colors: {
  custom: {
    50: '#7c80ce',
    500: '#3150b8',
    950: '#000000',
  },
}
SCSS
$custom: #3150b8;
$custom-light: #7c80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3150b8",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 184
  },
  "hsl": {
    "h": 226.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47122,
    "c": 0.16835,
    "h": 267
  },
  "luminance": 0.09851
}

Semantic roles & 50–950 ramp

primary
#3150B8
secondary
#C8B77D
accent
#BE47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3150B8

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

Preview Lab → · Contrast checker → · Palette generator →

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