#3150C5#3150C5

#3150C5 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.2% C 0.186 H 267.5°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#3150C5
RGBrgb(49, 80, 197)
HSLhsl(227, 60%, 48%)
HSVhsv(227, 75%, 77%)
CMYKcmyk(75.1%, 59.4%, 0%, 22.7%)
CIE-LABlab(38.59, 30.09, -64.27)
CIE-LCHlch(38.59, 70.96, 295.09°)
OKLaboklab(48.2% -0.0083 -0.1856)
OKLCHoklch(48.2% 0.186 267.5)
XYZxyz(14.2098, 10.4200, 54.0749)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150C5 #C5A631
analogous
#319AC5 #3150C5 #5C31C5
triadic
#3150C5 #C53150 #50C531
tetradic
#3150C5 #C5319A #C5A631 #31C55C
square
#3150C5 #C5319A #C5A631 #31C55C
split-complementary
#3150C5 #C55C31 #9AC531
monochromatic
#192863 #253C94 #3150C5 #5D76D7 #8E9FE3

Accessibility & contrast

On white

6.81
#3150C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3150C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3150C5
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150C5#FFFFFF#000000##FFFFFF
##3150C51.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#0054C3
Tritanopia (blue-blind)
#006E83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3150c5;
/* rgb */ color: rgb(49, 80, 197);
/* oklch */ color: oklch(48.2% 0.186 267.5);
Tailwind
colors: {
  custom: {
    50: '#7f80d7',
    500: '#3150c5',
    950: '#000000',
  },
}
SCSS
$custom: #3150c5;
$custom-light: #7f80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3150c5",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 197
  },
  "hsl": {
    "h": 227.432,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48199,
    "c": 0.18579,
    "h": 267.5
  },
  "luminance": 0.10422
}

Semantic roles & 50–950 ramp

primary
#3150C5
secondary
#CDBE85
accent
#C244E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3150C5

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

Preview Lab → · Contrast checker → · Palette generator →

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