#3151B7#3151B7

#3151B7 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.2% C 0.166 H 266.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#3151B7
RGBrgb(49, 81, 183)
HSLhsl(226, 58%, 45%)
HSVhsv(226, 73%, 72%)
CMYKcmyk(73.2%, 55.7%, 0%, 28.2%)
CIE-LABlab(37.76, 24.24, -57.42)
CIE-LCHlch(37.76, 62.33, 292.89°)
OKLaboklab(47.24% -0.0095 -0.1655)
OKLCHoklch(47.24% 0.166 266.7)
XYZxyz(12.7533, 9.9554, 46.0400)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151B7 #B79731
analogous
#3194B7 #3151B7 #5431B7
triadic
#3151B7 #B73151 #51B731
tetradic
#3151B7 #B73194 #B79731 #31B754
square
#3151B7 #B73194 #B79731 #31B754
split-complementary
#3151B7 #B75431 #94B731
monochromatic
#172656 #243C87 #3151B7 #5472D1 #849ADE

Accessibility & contrast

On white

7.02
#3151B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3151B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151B7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151B7#FFFFFF#000000##FFFFFF
##3151B71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3151b7;
/* rgb */ color: rgb(49, 81, 183);
/* oklch */ color: oklch(47.2% 0.166 266.7);
Tailwind
colors: {
  custom: {
    50: '#7b81cd',
    500: '#3151b7',
    950: '#000000',
  },
}
SCSS
$custom: #3151b7;
$custom-light: #7b81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3151b7",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 225.672,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47242,
    "c": 0.16574,
    "h": 266.7
  },
  "luminance": 0.09957
}

Semantic roles & 50–950 ramp

primary
#3151B7
secondary
#C8B67C
accent
#BC47E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3151B7

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

Preview Lab → · Contrast checker → · Palette generator →

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