#3151C0#3151C0

#3151C0 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.178 H 267.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#3151C0
RGBrgb(49, 81, 192)
HSLhsl(227, 59%, 47%)
HSVhsv(227, 74%, 75%)
CMYKcmyk(74.5%, 57.8%, 0%, 24.7%)
CIE-LABlab(38.45, 27.59, -61.58)
CIE-LCHlch(38.45, 67.48, 294.14°)
OKLaboklab(47.97% -0.0091 -0.1777)
OKLCHoklch(47.97% 0.178 267.1)
XYZxyz(13.7202, 10.3421, 51.1321)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151C0 #C0A031
analogous
#3199C0 #3151C0 #5831C0
triadic
#3151C0 #C03151 #51C031
tetradic
#3151C0 #C03199 #C0A031 #31C058
square
#3151C0 #C03199 #C0A031 #31C058
split-complementary
#3151C0 #C05831 #99C031
monochromatic
#18285E #253C8F #3151C0 #5975D5 #8A9EE1

Accessibility & contrast

On white

6.84
#3151C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#3151C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151C0
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151C0#FFFFFF#000000##FFFFFF
##3151C01.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3151c0;
/* rgb */ color: rgb(49, 81, 192);
/* oklch */ color: oklch(48.0% 0.178 267.1);
Tailwind
colors: {
  custom: {
    50: '#7d81d4',
    500: '#3151c0',
    950: '#000000',
  },
}
SCSS
$custom: #3151c0;
$custom-light: #7d81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#3151c0",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 226.573,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.47974,
    "c": 0.17792,
    "h": 267.1
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3151C0

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

Preview Lab → · Contrast checker → · Palette generator →

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