#3151AA#3151AA

#3151AA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.148 H 265.9°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#3151AA
RGBrgb(49, 81, 170)
HSLhsl(224, 55%, 43%)
HSVhsv(224, 71%, 67%)
CMYKcmyk(71.2%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.82, 19.37, -51.26)
CIE-LCHlch(36.82, 54.80, 290.70°)
OKLaboklab(46.23% -0.0105 -0.1474)
OKLCHoklch(46.23% 0.148 265.9)
XYZxyz(11.4622, 9.4389, 39.2402)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151AA #AA8A31
analogous
#318DAA #3151AA #4D31AA
triadic
#3151AA #AA3151 #51AA31
tetradic
#3151AA #AA318D #AA8A31 #31AA4D
square
#3151AA #AA318D #AA8A31 #31AA4D
split-complementary
#3151AA #AA4D31 #8DAA31
monochromatic
#16244B #233A7A #3151AA #4D6ECC #7C95D9

Accessibility & contrast

On white

7.27
#3151AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#3151AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3151AA#FFFFFF#000000##FFFFFF
##3151AA1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185CAD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3151aa;
/* rgb */ color: rgb(49, 81, 170);
/* oklch */ color: oklch(46.2% 0.148 265.9);
Tailwind
colors: {
  custom: {
    50: '#7981c4',
    500: '#3151aa',
    950: '#000000',
  },
}
SCSS
$custom: #3151aa;
$custom-light: #7981c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3151aa",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 224.132,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46228,
    "c": 0.14774,
    "h": 265.9
  },
  "luminance": 0.0944
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3151AA

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

Preview Lab → · Contrast checker → · Palette generator →

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