#3151B9#3151B9

#3151B9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.168 H 266.8°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#3151B9
RGBrgb(49, 81, 185)
HSLhsl(226, 58%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(73.5%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.91, 24.99, -58.35)
CIE-LCHlch(37.91, 63.48, 293.18°)
OKLaboklab(47.4% -0.0094 -0.1682)
OKLCHoklch(47.4% 0.168 266.8)
XYZxyz(12.9630, 10.0392, 47.1441)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151B9 #B99931
analogous
#3195B9 #3151B9 #5531B9
triadic
#3151B9 #B93151 #51B931
tetradic
#3151B9 #B93195 #B99931 #31B955
square
#3151B9 #B93195 #B99931 #31B955
split-complementary
#3151B9 #B95531 #95B931
monochromatic
#172758 #243C89 #3151B9 #5573D2 #869BDF

Accessibility & contrast

On white

6.98
#3151B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#3151B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151B9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151B9#FFFFFF#000000##FFFFFF
##3151B91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3151b9;
/* rgb */ color: rgb(49, 81, 185);
/* oklch */ color: oklch(47.4% 0.168 266.8);
Tailwind
colors: {
  custom: {
    50: '#7c81cf',
    500: '#3151b9',
    950: '#000000',
  },
}
SCSS
$custom: #3151b9;
$custom-light: #7c81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3151b9",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 225.882,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47403,
    "c": 0.16847,
    "h": 266.8
  },
  "luminance": 0.10041
}

Semantic roles & 50–950 ramp

primary
#3151B9
secondary
#C8B77D
accent
#BD46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3151B9

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

Preview Lab → · Contrast checker → · Palette generator →

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