#3151A5#3151A5

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

Color values

HEX#3151A5
RGBrgb(49, 81, 165)
HSLhsl(223, 54%, 42%)
HSVhsv(223, 70%, 65%)
CMYKcmyk(70.3%, 50.9%, 0%, 35.3%)
CIE-LABlab(36.47, 17.50, -48.85)
CIE-LCHlch(36.47, 51.89, 289.71°)
OKLaboklab(45.85% -0.0111 -0.1403)
OKLCHoklch(45.85% 0.141 265.5)
XYZxyz(10.9982, 9.2533, 36.7965)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A5 #A58531
analogous
#318BA5 #3151A5 #4B31A5
triadic
#3151A5 #A53151 #51A531
tetradic
#3151A5 #A5318B #A58531 #31A54B
square
#3151A5 #A5318B #A58531 #31A54B
split-complementary
#3151A5 #A54B31 #8BA531
monochromatic
#152347 #233A76 #3151A5 #4A6DC9 #7993D7

Accessibility & contrast

On white

7.37
#3151A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#3151A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151A5
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151A5#FFFFFF#000000##FFFFFF
##3151A51.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA8
Deuteranopia (green-blind)
#0051A3
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3151a5;
/* rgb */ color: rgb(49, 81, 165);
/* oklch */ color: oklch(45.9% 0.141 265.5);
Tailwind
colors: {
  custom: {
    50: '#7781c0',
    500: '#3151a5',
    950: '#000000',
  },
}
SCSS
$custom: #3151a5;
$custom-light: #7781c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a5",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 223.448,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.45852,
    "c": 0.14069,
    "h": 265.5
  },
  "luminance": 0.09254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3151A5

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

Preview Lab → · Contrast checker → · Palette generator →

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