#3150BA#3150BA

#3150BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.171 H 267.1°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#3150BA
RGBrgb(49, 80, 186)
HSLhsl(226, 58%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(73.7%, 57%, 0%, 27.1%)
CIE-LABlab(37.72, 26.01, -59.25)
CIE-LCHlch(37.72, 64.71, 293.71°)
OKLaboklab(47.29% -0.0086 -0.1708)
OKLCHoklch(47.29% 0.171 267.1)
XYZxyz(12.9951, 9.9341, 47.6774)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150BA #BA9B31
analogous
#3194BA #3150BA #5631BA
triadic
#3150BA #BA3150 #50BA31
tetradic
#3150BA #BA3194 #BA9B31 #31BA56
square
#3150BA #BA3194 #BA9B31 #31BA56
split-complementary
#3150BA #BA5631 #94BA31
monochromatic
#172659 #243B8A #3150BA #5672D2 #869ADF

Accessibility & contrast

On white

7.03
#3150BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3150BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3150BA
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150BA#FFFFFF#000000##FFFFFF
##3150BA1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3150ba;
/* rgb */ color: rgb(49, 80, 186);
/* oklch */ color: oklch(47.3% 0.171 267.1);
Tailwind
colors: {
  custom: {
    50: '#7c80d0',
    500: '#3150ba',
    950: '#000000',
  },
}
SCSS
$custom: #3150ba;
$custom-light: #7c80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3150ba",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 186
  },
  "hsl": {
    "h": 226.423,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.17107,
    "h": 267.1
  },
  "luminance": 0.09935
}

Semantic roles & 50–950 ramp

primary
#3150BA
secondary
#C9B87E
accent
#BE46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3150BA

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

Preview Lab → · Contrast checker → · Palette generator →

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