#3151BE#3151BE

#3151BE is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.175 H 267.0°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#3151BE
RGBrgb(49, 81, 190)
HSLhsl(226, 59%, 47%)
HSVhsv(226, 74%, 75%)
CMYKcmyk(74.2%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.29, 26.85, -60.66)
CIE-LCHlch(38.29, 66.34, 293.87°)
OKLaboklab(47.81% -0.0092 -0.175)
OKLCHoklch(47.81% 0.175 267)
XYZxyz(13.5001, 10.2541, 49.9730)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151BE #BE9E31
analogous
#3198BE #3151BE #5831BE
triadic
#3151BE #BE3151 #51BE31
tetradic
#3151BE #BE3198 #BE9E31 #31BE58
square
#3151BE #BE3198 #BE9E31 #31BE58
split-complementary
#3151BE #BE5831 #98BE31
monochromatic
#18285D #243C8D #3151BE #5874D4 #899DE1

Accessibility & contrast

On white

6.88
#3151BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#3151BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151BE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151BE#FFFFFF#000000##FFFFFF
##3151BE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3151be;
/* rgb */ color: rgb(49, 81, 190);
/* oklch */ color: oklch(47.8% 0.175 267.0);
Tailwind
colors: {
  custom: {
    50: '#7d81d2',
    500: '#3151be',
    950: '#000000',
  },
}
SCSS
$custom: #3151be;
$custom-light: #7d81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3151be",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 226.383,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.47809,
    "c": 0.17524,
    "h": 267
  },
  "luminance": 0.10256
}

Semantic roles & 50–950 ramp

primary
#3151BE
secondary
#CABA80
accent
#BF46E2
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3151BE

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

Preview Lab → · Contrast checker → · Palette generator →

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