#3151B4#3151B4

#3151B4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.162 H 266.6°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#3151B4
RGBrgb(49, 81, 180)
HSLhsl(225, 57%, 45%)
HSVhsv(225, 73%, 71%)
CMYKcmyk(72.8%, 55%, 0%, 29.4%)
CIE-LABlab(37.54, 23.12, -56.02)
CIE-LCHlch(37.54, 60.60, 292.43°)
OKLaboklab(47% -0.0097 -0.1613)
OKLCHoklch(47% 0.162 266.6)
XYZxyz(12.4444, 9.8318, 44.4131)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151B4 #B49431
analogous
#3192B4 #3151B4 #5331B4
triadic
#3151B4 #B43151 #51B431
tetradic
#3151B4 #B43192 #B49431 #31B453
square
#3151B4 #B43192 #B49431 #31B453
split-complementary
#3151B4 #B45331 #92B431
monochromatic
#172654 #243B84 #3151B4 #5271D0 #8298DD

Accessibility & contrast

On white

7.08
#3151B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3151B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3151B4
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151B4#FFFFFF#000000##FFFFFF
##3151B41.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3151b4;
/* rgb */ color: rgb(49, 81, 180);
/* oklch */ color: oklch(47.0% 0.162 266.6);
Tailwind
colors: {
  custom: {
    50: '#7b81cb',
    500: '#3151b4',
    950: '#000000',
  },
}
SCSS
$custom: #3151b4;
$custom-light: #7b81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3151b4",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 225.344,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47004,
    "c": 0.16163,
    "h": 266.6
  },
  "luminance": 0.09833
}

Semantic roles & 50–950 ramp

primary
#3151B4
secondary
#C6B47B
accent
#BB47E0
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3151B4

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

Preview Lab → · Contrast checker → · Palette generator →

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