#3151BC#3151BC

#3151BC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.173 H 266.9°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#3151BC
RGBrgb(49, 81, 188)
HSLhsl(226, 59%, 46%)
HSVhsv(226, 74%, 74%)
CMYKcmyk(73.9%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.14, 26.11, -59.74)
CIE-LCHlch(38.14, 65.20, 293.60°)
OKLaboklab(47.65% -0.0092 -0.1723)
OKLCHoklch(47.65% 0.173 266.9)
XYZxyz(13.2830, 10.1672, 48.8296)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151BC #BC9C31
analogous
#3197BC #3151BC #5731BC
triadic
#3151BC #BC3151 #51BC31
tetradic
#3151BC #BC3197 #BC9C31 #31BC57
square
#3151BC #BC3197 #BC9C31 #31BC57
split-complementary
#3151BC #BC5731 #97BC31
monochromatic
#18275B #243C8B #3151BC #5774D3 #889CE0

Accessibility & contrast

On white

6.92
#3151BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#3151BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151BC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151BC#FFFFFF#000000##FFFFFF
##3151BC1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#006B7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #3151bc;
/* rgb */ color: rgb(49, 81, 188);
/* oklch */ color: oklch(47.6% 0.173 266.9);
Tailwind
colors: {
  custom: {
    50: '#7d81d1',
    500: '#3151bc',
    950: '#000000',
  },
}
SCSS
$custom: #3151bc;
$custom-light: #7d81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#3151bc",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 226.187,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47646,
    "c": 0.17254,
    "h": 266.9
  },
  "luminance": 0.10169
}

Semantic roles & 50–950 ramp

primary
#3151BC
secondary
#CAB87F
accent
#BE46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3151BC

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

Preview Lab → · Contrast checker → · Palette generator →

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