#3151C1#3151C1

#3151C1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.1% C 0.179 H 267.1°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#3151C1
RGBrgb(49, 81, 193)
HSLhsl(227, 60%, 47%)
HSVhsv(227, 75%, 76%)
CMYKcmyk(74.6%, 58%, 0%, 24.3%)
CIE-LABlab(38.53, 27.96, -62.03)
CIE-LCHlch(38.53, 68.04, 294.26°)
OKLaboklab(48.06% -0.0091 -0.179)
OKLCHoklch(48.06% 0.179 267.1)
XYZxyz(13.8313, 10.3866, 51.7176)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151C1 #C1A131
analogous
#3199C1 #3151C1 #5931C1
triadic
#3151C1 #C13151 #51C131
tetradic
#3151C1 #C13199 #C1A131 #31C159
square
#3151C1 #C13199 #C1A131 #31C159
split-complementary
#3151C1 #C15931 #99C131
monochromatic
#18285F #253D90 #3151C1 #5A75D5 #8B9EE2

Accessibility & contrast

On white

6.82
#3151C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#3151C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151C1
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151C1#FFFFFF#000000##FFFFFF
##3151C11.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C5
Deuteranopia (green-blind)
#0054BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3151c1;
/* rgb */ color: rgb(49, 81, 193);
/* oklch */ color: oklch(48.1% 0.179 267.1);
Tailwind
colors: {
  custom: {
    50: '#7e81d5',
    500: '#3151c1',
    950: '#000000',
  },
}
SCSS
$custom: #3151c1;
$custom-light: #7e81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3151c1",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 193
  },
  "hsl": {
    "h": 226.667,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48057,
    "c": 0.17926,
    "h": 267.1
  },
  "luminance": 0.10388
}

Semantic roles & 50–950 ramp

primary
#3151C1
secondary
#CCBB82
accent
#C045E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3151C1

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

Preview Lab → · Contrast checker → · Palette generator →

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