#3151AD#3151AD

#3151AD is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.152 H 266.1°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#3151AD
RGBrgb(49, 81, 173)
HSLhsl(225, 56%, 44%)
HSVhsv(225, 72%, 68%)
CMYKcmyk(71.7%, 53.2%, 0%, 32.2%)
CIE-LABlab(37.03, 20.50, -52.70)
CIE-LCHlch(37.03, 56.55, 291.25°)
OKLaboklab(46.46% -0.0102 -0.1516)
OKLCHoklch(46.46% 0.152 266.1)
XYZxyz(11.7492, 9.5537, 40.7519)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151AD #AD8D31
analogous
#318FAD #3151AD #4F31AD
triadic
#3151AD #AD3151 #51AD31
tetradic
#3151AD #AD318F #AD8D31 #31AD4F
square
#3151AD #AD318F #AD8D31 #31AD4F
split-complementary
#3151AD #AD4F31 #8FAD31
monochromatic
#16244E #233B7D #3151AD #4E6FCD #7E96DA

Accessibility & contrast

On white

7.21
#3151AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#3151AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3151AD#FFFFFF#000000##FFFFFF
##3151AD1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115DB0
Deuteranopia (green-blind)
#0052AB
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3151ad;
/* rgb */ color: rgb(49, 81, 173);
/* oklch */ color: oklch(46.5% 0.152 266.1);
Tailwind
colors: {
  custom: {
    50: '#7981c6',
    500: '#3151ad',
    950: '#000000',
  },
}
SCSS
$custom: #3151ad;
$custom-light: #7981c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3151ad",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 224.516,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46457,
    "c": 0.15194,
    "h": 266.1
  },
  "luminance": 0.09555
}

Semantic roles & 50–950 ramp

primary
#3151AD
secondary
#C3AF77
accent
#B849DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3151AD

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

Preview Lab → · Contrast checker → · Palette generator →

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