#3150C2#3150C2

#3150C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.182 H 267.4°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#3150C2
RGBrgb(49, 80, 194)
HSLhsl(227, 60%, 48%)
HSVhsv(227, 75%, 76%)
CMYKcmyk(74.7%, 58.8%, 0%, 23.9%)
CIE-LABlab(38.35, 28.98, -62.91)
CIE-LCHlch(38.35, 69.27, 294.73°)
OKLaboklab(47.95% -0.0083 -0.1816)
OKLCHoklch(47.95% 0.182 267.4)
XYZxyz(13.8695, 10.2838, 52.2825)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150C2 #C2A331
analogous
#3199C2 #3150C2 #5A31C2
triadic
#3150C2 #C23150 #50C231
tetradic
#3150C2 #C23199 #C2A331 #31C25A
square
#3150C2 #C23199 #C2A331 #31C25A
split-complementary
#3150C2 #C25A31 #99C231
monochromatic
#182860 #253C91 #3150C2 #5B75D6 #8C9EE2

Accessibility & contrast

On white

6.87
#3150C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#3150C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3150C2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150C2#FFFFFF#000000##FFFFFF
##3150C21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0054C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3150c2;
/* rgb */ color: rgb(49, 80, 194);
/* oklch */ color: oklch(47.9% 0.182 267.4);
Tailwind
colors: {
  custom: {
    50: '#7e80d5',
    500: '#3150c2',
    950: '#000000',
  },
}
SCSS
$custom: #3150c2;
$custom-light: #7e80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3150c2",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 194
  },
  "hsl": {
    "h": 227.172,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47947,
    "c": 0.18181,
    "h": 267.4
  },
  "luminance": 0.10285
}

Semantic roles & 50–950 ramp

primary
#3150C2
secondary
#CCBC83
accent
#C145E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3150C2

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

Preview Lab → · Contrast checker → · Palette generator →

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