#3151C6#3151C6

#3151C6 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.5% C 0.186 H 267.2°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#3151C6
RGBrgb(49, 81, 198)
HSLhsl(227, 60%, 48%)
HSVhsv(227, 75%, 78%)
CMYKcmyk(75.3%, 59.1%, 0%, 22.4%)
CIE-LABlab(38.92, 29.81, -64.30)
CIE-LCHlch(38.92, 70.88, 294.87°)
OKLaboklab(48.47% -0.0089 -0.1857)
OKLCHoklch(48.47% 0.186 267.2)
XYZxyz(14.3985, 10.6135, 54.7049)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151C6 #C6A631
analogous
#319BC6 #3151C6 #5B31C6
triadic
#3151C6 #C63151 #51C631
tetradic
#3151C6 #C6319B #C6A631 #31C65B
square
#3151C6 #C6319B #C6A631 #31C65B
split-complementary
#3151C6 #C65B31 #9BC631
monochromatic
#192964 #253D95 #3151C6 #5D77D7 #8EA1E3

Accessibility & contrast

On white

6.72
#3151C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#3151C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151C6
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151C6#FFFFFF#000000##FFFFFF
##3151C61.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CA
Deuteranopia (green-blind)
#0055C4
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3151c6;
/* rgb */ color: rgb(49, 81, 198);
/* oklch */ color: oklch(48.5% 0.186 267.2);
Tailwind
colors: {
  custom: {
    50: '#7f81d8',
    500: '#3151c6',
    950: '#000000',
  },
}
SCSS
$custom: #3151c6;
$custom-light: #7f81d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3151c6",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 198
  },
  "hsl": {
    "h": 227.114,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48474,
    "c": 0.1859,
    "h": 267.2
  },
  "luminance": 0.10615
}

Semantic roles & 50–950 ramp

primary
#3151C6
secondary
#CEBE85
accent
#C144E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3151C6

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

Preview Lab → · Contrast checker → · Palette generator →

#3151C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva