#3154BE#3154BE

#3154BE is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.4% C 0.172 H 266.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#3154BE
RGBrgb(49, 84, 190)
HSLhsl(225, 59%, 47%)
HSVhsv(225, 74%, 75%)
CMYKcmyk(74.2%, 55.8%, 0%, 25.5%)
CIE-LABlab(39.09, 24.89, -59.37)
CIE-LCHlch(39.09, 64.38, 292.75°)
OKLaboklab(48.41% -0.0114 -0.1712)
OKLCHoklch(48.41% 0.172 266.2)
XYZxyz(13.7280, 10.7098, 50.0489)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154BE #BE9B31
analogous
#319BBE #3154BE #5431BE
triadic
#3154BE #BE3154 #54BE31
tetradic
#3154BE #BE319B #BE9B31 #31BE54
square
#3154BE #BE319B #BE9B31 #31BE54
split-complementary
#3154BE #BE5431 #9BBE31
monochromatic
#18295D #243E8D #3154BE #5877D4 #899FE1

Accessibility & contrast

On white

6.68
#3154BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#3154BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154BE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154BE#FFFFFF#000000##FFFFFF
##3154BE1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#006E81
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3154be;
/* rgb */ color: rgb(49, 84, 190);
/* oklch */ color: oklch(48.4% 0.172 266.2);
Tailwind
colors: {
  custom: {
    50: '#7d83d2',
    500: '#3154be',
    950: '#000000',
  },
}
SCSS
$custom: #3154be;
$custom-light: #7d83d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3154be",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 190
  },
  "hsl": {
    "h": 225.106,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.48405,
    "c": 0.17154,
    "h": 266.2
  },
  "luminance": 0.10711
}

Semantic roles & 50–950 ramp

primary
#3154BE
secondary
#CAB880
accent
#BB46E2
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3154BE

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

Preview Lab → · Contrast checker → · Palette generator →

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