#3151AF#3151AF

#3151AF is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.155 H 266.3°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#3151AF
RGBrgb(49, 81, 175)
HSLhsl(225, 56%, 44%)
HSVhsv(225, 72%, 69%)
CMYKcmyk(72%, 53.7%, 0%, 31.4%)
CIE-LABlab(37.17, 21.25, -53.65)
CIE-LCHlch(37.17, 57.71, 291.61°)
OKLaboklab(46.61% -0.0101 -0.1544)
OKLCHoklch(46.61% 0.155 266.3)
XYZxyz(11.9442, 9.6317, 41.7788)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151AF #AF8F31
analogous
#3190AF #3151AF #5031AF
triadic
#3151AF #AF3151 #51AF31
tetradic
#3151AF #AF3190 #AF8F31 #31AF50
square
#3151AF #AF3190 #AF8F31 #31AF50
split-complementary
#3151AF #AF5031 #90AF31
monochromatic
#16254F #243B7F #3151AF #4F6FCE #7F97DB

Accessibility & contrast

On white

7.18
#3151AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#3151AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3151AF#FFFFFF#000000##FFFFFF
##3151AF1.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5EB2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3151af;
/* rgb */ color: rgb(49, 81, 175);
/* oklch */ color: oklch(46.6% 0.155 266.3);
Tailwind
colors: {
  custom: {
    50: '#7a81c8',
    500: '#3151af',
    950: '#000000',
  },
}
SCSS
$custom: #3151af;
$custom-light: #7a81c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3151af",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 175
  },
  "hsl": {
    "h": 224.762,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.46612,
    "c": 0.15472,
    "h": 266.3
  },
  "luminance": 0.09633
}

Semantic roles & 50–950 ramp

primary
#3151AF
secondary
#C4B178
accent
#B948E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3151AF

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

Preview Lab → · Contrast checker → · Palette generator →

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