#3151B3#3151B3

#3151B3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.160 H 266.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#3151B3
RGBrgb(49, 81, 179)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 73%, 70%)
CMYKcmyk(72.6%, 54.7%, 0%, 29.8%)
CIE-LABlab(37.47, 22.75, -55.55)
CIE-LCHlch(37.47, 60.02, 292.27°)
OKLaboklab(46.93% -0.0098 -0.16)
OKLCHoklch(46.93% 0.16 266.5)
XYZxyz(12.3429, 9.7912, 43.8785)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151B3 #B39331
analogous
#3192B3 #3151B3 #5231B3
triadic
#3151B3 #B33151 #51B331
tetradic
#3151B3 #B33192 #B39331 #31B352
square
#3151B3 #B33192 #B39331 #31B352
split-complementary
#3151B3 #B35231 #92B331
monochromatic
#172653 #243B83 #3151B3 #5271D0 #8298DD

Accessibility & contrast

On white

7.10
#3151B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#3151B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3151B3#FFFFFF#000000##FFFFFF
##3151B31.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3151b3;
/* rgb */ color: rgb(49, 81, 179);
/* oklch */ color: oklch(46.9% 0.160 266.5);
Tailwind
colors: {
  custom: {
    50: '#7b81ca',
    500: '#3151b3',
    950: '#000000',
  },
}
SCSS
$custom: #3151b3;
$custom-light: #7b81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3151b3",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 225.231,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46925,
    "c": 0.16026,
    "h": 266.5
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#3151B3
secondary
#C6B37A
accent
#BB48E0
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3151B3

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

Preview Lab → · Contrast checker → · Palette generator →

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