#3151AE#3151AE

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

Color values

HEX#3151AE
RGBrgb(49, 81, 174)
HSLhsl(225, 56%, 44%)
HSVhsv(225, 72%, 68%)
CMYKcmyk(71.8%, 53.4%, 0%, 31.8%)
CIE-LABlab(37.10, 20.87, -53.18)
CIE-LCHlch(37.10, 57.13, 291.43°)
OKLaboklab(46.53% -0.0102 -0.153)
OKLCHoklch(46.53% 0.153 266.2)
XYZxyz(11.8464, 9.5926, 41.2634)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151AE #AE8E31
analogous
#318FAE #3151AE #4F31AE
triadic
#3151AE #AE3151 #51AE31
tetradic
#3151AE #AE318F #AE8E31 #31AE4F
square
#3151AE #AE318F #AE8E31 #31AE4F
split-complementary
#3151AE #AE4F31 #8FAE31
monochromatic
#16254E #243B7E #3151AE #4F6FCD #7F96DB

Accessibility & contrast

On white

7.19
#3151AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#3151AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3151AE#FFFFFF#000000##FFFFFF
##3151AE1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5DB1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3151ae;
/* rgb */ color: rgb(49, 81, 174);
/* oklch */ color: oklch(46.5% 0.153 266.2);
Tailwind
colors: {
  custom: {
    50: '#7981c7',
    500: '#3151ae',
    950: '#000000',
  },
}
SCSS
$custom: #3151ae;
$custom-light: #7981c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3151ae",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 224.64,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46534,
    "c": 0.15333,
    "h": 266.2
  },
  "luminance": 0.09594
}

Semantic roles & 50–950 ramp

primary
#3151AE
secondary
#C4B077
accent
#B948DF
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3151AE

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

Preview Lab → · Contrast checker → · Palette generator →

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