#3151A7#3151A7

#3151A7 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.144 H 265.7°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#3151A7
RGBrgb(49, 81, 167)
HSLhsl(224, 55%, 42%)
HSVhsv(224, 71%, 65%)
CMYKcmyk(70.7%, 51.5%, 0%, 34.5%)
CIE-LABlab(36.61, 18.25, -49.82)
CIE-LCHlch(36.61, 53.05, 290.12°)
OKLaboklab(46% -0.0109 -0.1431)
OKLCHoklch(46% 0.144 265.7)
XYZxyz(11.1817, 9.3267, 37.7627)
Luminance0.0933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A7 #A78731
analogous
#318CA7 #3151A7 #4C31A7
triadic
#3151A7 #A73151 #51A731
tetradic
#3151A7 #A7318C #A78731 #31A74C
square
#3151A7 #A7318C #A78731 #31A74C
split-complementary
#3151A7 #A74C31 #8CA731
monochromatic
#152348 #233A78 #3151A7 #4B6DCA #7A94D8

Accessibility & contrast

On white

7.33
#3151A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#3151A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A7
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A7#FFFFFF#000000##FFFFFF
##3151A71.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5CAA
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#006574
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3151a7;
/* rgb */ color: rgb(49, 81, 167);
/* oklch */ color: oklch(46.0% 0.144 265.7);
Tailwind
colors: {
  custom: {
    50: '#7881c2',
    500: '#3151a7',
    950: '#000000',
  },
}
SCSS
$custom: #3151a7;
$custom-light: #7881c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a7",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 167
  },
  "hsl": {
    "h": 223.729,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.46001,
    "c": 0.14351,
    "h": 265.7
  },
  "luminance": 0.09328
}

Semantic roles & 50–950 ramp

primary
#3151A7
secondary
#C1AC73
accent
#B64ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3151A7

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

Preview Lab → · Contrast checker → · Palette generator →

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