#3150BB#3150BB

#3150BB is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.172 H 267.2°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#3150BB
RGBrgb(49, 80, 187)
HSLhsl(227, 58%, 46%)
HSVhsv(227, 74%, 73%)
CMYKcmyk(73.8%, 57.2%, 0%, 26.7%)
CIE-LABlab(37.80, 26.39, -59.71)
CIE-LCHlch(37.80, 65.28, 293.84°)
OKLaboklab(47.37% -0.0085 -0.1722)
OKLCHoklch(47.37% 0.172 267.2)
XYZxyz(13.1018, 9.9767, 48.2393)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150BB #BB9C31
analogous
#3195BB #3150BB #5731BB
triadic
#3150BB #BB3150 #50BB31
tetradic
#3150BB #BB3195 #BB9C31 #31BB57
square
#3150BB #BB3195 #BB9C31 #31BB57
split-complementary
#3150BB #BB5731 #95BB31
monochromatic
#18275A #243B8B #3150BB #5672D3 #879BE0

Accessibility & contrast

On white

7.01
#3150BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#3150BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3150BB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150BB#FFFFFF#000000##FFFFFF
##3150BB1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#0053B9
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3150bb;
/* rgb */ color: rgb(49, 80, 187);
/* oklch */ color: oklch(47.4% 0.172 267.2);
Tailwind
colors: {
  custom: {
    50: '#7c80d0',
    500: '#3150bb',
    950: '#000000',
  },
}
SCSS
$custom: #3150bb;
$custom-light: #7c80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3150bb",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 187
  },
  "hsl": {
    "h": 226.522,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47367,
    "c": 0.17242,
    "h": 267.2
  },
  "luminance": 0.09978
}

Semantic roles & 50–950 ramp

primary
#3150BB
secondary
#C9B87F
accent
#BF46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3150BB

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

Preview Lab → · Contrast checker → · Palette generator →

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