#3151AB#3151AB

#3151AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.3% C 0.149 H 266.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#3151AB
RGBrgb(49, 81, 171)
HSLhsl(224, 55%, 43%)
HSVhsv(224, 71%, 67%)
CMYKcmyk(71.3%, 52.6%, 0%, 32.9%)
CIE-LABlab(36.89, 19.75, -51.74)
CIE-LCHlch(36.89, 55.39, 290.89°)
OKLaboklab(46.3% -0.0104 -0.1488)
OKLCHoklch(46.3% 0.149 266)
XYZxyz(11.5572, 9.4769, 39.7403)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151AB #AB8B31
analogous
#318EAB #3151AB #4E31AB
triadic
#3151AB #AB3151 #51AB31
tetradic
#3151AB #AB318E #AB8B31 #31AB4E
square
#3151AB #AB318E #AB8B31 #31AB4E
split-complementary
#3151AB #AB4E31 #8EAB31
monochromatic
#16244C #233A7B #3151AB #4D6ECC #7D95DA

Accessibility & contrast

On white

7.25
#3151AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#3151AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151AB
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151AB#FFFFFF#000000##FFFFFF
##3151AB1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3151ab;
/* rgb */ color: rgb(49, 81, 171);
/* oklch */ color: oklch(46.3% 0.149 266.0);
Tailwind
colors: {
  custom: {
    50: '#7981c5',
    500: '#3151ab',
    950: '#000000',
  },
}
SCSS
$custom: #3151ab;
$custom-light: #7981c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3151ab",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 224.262,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46304,
    "c": 0.14914,
    "h": 266
  },
  "luminance": 0.09478
}

Semantic roles & 50–950 ramp

primary
#3151AB
secondary
#C2AE75
accent
#B749DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3151AB

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

Preview Lab → · Contrast checker → · Palette generator →

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