#3151A6#3151A6

#3151A6 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.142 H 265.6°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#3151A6
RGBrgb(49, 81, 166)
HSLhsl(224, 54%, 42%)
HSVhsv(224, 70%, 65%)
CMYKcmyk(70.5%, 51.2%, 0%, 34.9%)
CIE-LABlab(36.54, 17.87, -49.33)
CIE-LCHlch(36.54, 52.47, 289.91°)
OKLaboklab(45.93% -0.011 -0.1417)
OKLCHoklch(45.93% 0.142 265.6)
XYZxyz(11.0896, 9.2899, 37.2777)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A6 #A68631
analogous
#318CA6 #3151A6 #4C31A6
triadic
#3151A6 #A63151 #51A631
tetradic
#3151A6 #A6318C #A68631 #31A64C
square
#3151A6 #A6318C #A68631 #31A64C
split-complementary
#3151A6 #A64C31 #8CA631
monochromatic
#152347 #233A77 #3151A6 #4A6DCA #7A93D8

Accessibility & contrast

On white

7.35
#3151A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#3151A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A6
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A6#FFFFFF#000000##FFFFFF
##3151A61.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5CA9
Deuteranopia (green-blind)
#0051A4
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3151a6;
/* rgb */ color: rgb(49, 81, 166);
/* oklch */ color: oklch(45.9% 0.142 265.6);
Tailwind
colors: {
  custom: {
    50: '#7881c1',
    500: '#3151a6',
    950: '#000000',
  },
}
SCSS
$custom: #3151a6;
$custom-light: #7881c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a6",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 166
  },
  "hsl": {
    "h": 223.59,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45926,
    "c": 0.1421,
    "h": 265.6
  },
  "luminance": 0.09291
}

Semantic roles & 50–950 ramp

primary
#3151A6
secondary
#C0AB73
accent
#B54ADE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3151A6

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

Preview Lab → · Contrast checker → · Palette generator →

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