#3151C7#3151C7

#3151C7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.6% C 0.187 H 267.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#3151C7
RGBrgb(49, 81, 199)
HSLhsl(227, 60%, 49%)
HSVhsv(227, 75%, 78%)
CMYKcmyk(75.4%, 59.3%, 0%, 22%)
CIE-LABlab(39.00, 30.18, -64.75)
CIE-LCHlch(39.00, 71.44, 294.99°)
OKLaboklab(48.56% -0.0089 -0.187)
OKLCHoklch(48.56% 0.187 267.3)
XYZxyz(14.5143, 10.6598, 55.3144)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151C7 #C7A731
analogous
#319CC7 #3151C7 #5C31C7
triadic
#3151C7 #C73151 #51C731
tetradic
#3151C7 #C7319C #C7A731 #31C75C
square
#3151C7 #C7319C #C7A731 #31C75C
split-complementary
#3151C7 #C75C31 #9CC731
monochromatic
#192965 #253D96 #3151C7 #5E78D7 #8FA1E3

Accessibility & contrast

On white

6.70
#3151C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#3151C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151C7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151C7#FFFFFF#000000##FFFFFF
##3151C71.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006F84
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3151c7;
/* rgb */ color: rgb(49, 81, 199);
/* oklch */ color: oklch(48.6% 0.187 267.3);
Tailwind
colors: {
  custom: {
    50: '#7f81d9',
    500: '#3151c7',
    950: '#000000',
  },
}
SCSS
$custom: #3151c7;
$custom-light: #7f81d9;
$custom-dark: #000000;
JSON
{
  "hex": "#3151c7",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 227.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48559,
    "c": 0.18723,
    "h": 267.3
  },
  "luminance": 0.10661
}

Semantic roles & 50–950 ramp

primary
#3151C7
secondary
#CEBF86
accent
#C244E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3151C7

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

Preview Lab → · Contrast checker → · Palette generator →

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