#3151A8#3151A8

#3151A8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.145 H 265.7°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#3151A8
RGBrgb(49, 81, 168)
HSLhsl(224, 55%, 43%)
HSVhsv(224, 71%, 66%)
CMYKcmyk(70.8%, 51.8%, 0%, 34.1%)
CIE-LABlab(36.68, 18.62, -50.30)
CIE-LCHlch(36.68, 53.64, 290.32°)
OKLaboklab(46.08% -0.0107 -0.1445)
OKLCHoklch(46.08% 0.145 265.7)
XYZxyz(11.2745, 9.3638, 38.2514)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151A8 #A88831
analogous
#318CA8 #3151A8 #4D31A8
triadic
#3151A8 #A83151 #51A831
tetradic
#3151A8 #A8318C #A88831 #31A84D
square
#3151A8 #A8318C #A88831 #31A84D
split-complementary
#3151A8 #A84D31 #8CA831
monochromatic
#152349 #233A79 #3151A8 #4C6ECB #7B94D8

Accessibility & contrast

On white

7.31
#3151A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##3151A8#FFFFFF#000000##FFFFFF
##3151A81.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5CAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #3151a8;
/* rgb */ color: rgb(49, 81, 168);
/* oklch */ color: oklch(46.1% 0.145 265.7);
Tailwind
colors: {
  custom: {
    50: '#7881c2',
    500: '#3151a8',
    950: '#000000',
  },
}
SCSS
$custom: #3151a8;
$custom-light: #7881c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3151a8",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 223.866,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46076,
    "c": 0.14493,
    "h": 265.7
  },
  "luminance": 0.09365
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3151A8

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

Preview Lab → · Contrast checker → · Palette generator →

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