#3150C0#3150C0

#3150C0 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.179 H 267.3°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#3150C0
RGBrgb(49, 80, 192)
HSLhsl(227, 59%, 47%)
HSVhsv(227, 74%, 75%)
CMYKcmyk(74.5%, 58.3%, 0%, 24.7%)
CIE-LABlab(38.19, 28.24, -62.00)
CIE-LCHlch(38.19, 68.13, 294.49°)
OKLaboklab(47.78% -0.0084 -0.1789)
OKLCHoklch(47.78% 0.179 267.3)
XYZxyz(13.6464, 10.1946, 51.1075)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3150C0 #C0A131
analogous
#3198C0 #3150C0 #5A31C0
triadic
#3150C0 #C03150 #50C031
tetradic
#3150C0 #C03198 #C0A131 #31C05A
square
#3150C0 #C03198 #C0A131 #31C05A
split-complementary
#3150C0 #C05A31 #98C031
monochromatic
#18275E #253C8F #3150C0 #5974D5 #8A9DE1

Accessibility & contrast

On white

6.91
#3150C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#3150C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3150C0
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3150C0#FFFFFF#000000##FFFFFF
##3150C01.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3150c0;
/* rgb */ color: rgb(49, 80, 192);
/* oklch */ color: oklch(47.8% 0.179 267.3);
Tailwind
colors: {
  custom: {
    50: '#7d80d4',
    500: '#3150c0',
    950: '#000000',
  },
}
SCSS
$custom: #3150c0;
$custom-light: #7d80d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3150c0",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 192
  },
  "hsl": {
    "h": 226.993,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4778,
    "c": 0.17915,
    "h": 267.3
  },
  "luminance": 0.10196
}

Semantic roles & 50–950 ramp

primary
#3150C0
secondary
#CBBB82
accent
#C045E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3150C0

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

Preview Lab → · Contrast checker → · Palette generator →

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