#3154C5#3154C5

#3154C5 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.0% C 0.181 H 266.5°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#3154C5
RGBrgb(49, 84, 197)
HSLhsl(226, 60%, 48%)
HSVhsv(226, 75%, 77%)
CMYKcmyk(75.1%, 57.4%, 0%, 22.7%)
CIE-LABlab(39.62, 27.50, -62.59)
CIE-LCHlch(39.62, 68.36, 293.72°)
OKLaboklab(48.97% -0.0111 -0.1806)
OKLCHoklch(48.97% 0.181 266.5)
XYZxyz(14.5115, 11.0232, 54.1754)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154C5 #C5A231
analogous
#319EC5 #3154C5 #5831C5
triadic
#3154C5 #C53154 #54C531
tetradic
#3154C5 #C5319E #C5A231 #31C558
square
#3154C5 #C5319E #C5A231 #31C558
split-complementary
#3154C5 #C55831 #9EC531
monochromatic
#192A63 #253F94 #3154C5 #5D79D7 #8EA2E3

Accessibility & contrast

On white

6.55
#3154C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#3154C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3154C5
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154C5#FFFFFF#000000##FFFFFF
##3154C51.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C9
Deuteranopia (green-blind)
#0057C3
Tritanopia (blue-blind)
#007084
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3154c5;
/* rgb */ color: rgb(49, 84, 197);
/* oklch */ color: oklch(49.0% 0.181 266.5);
Tailwind
colors: {
  custom: {
    50: '#7e83d7',
    500: '#3154c5',
    950: '#000000',
  },
}
SCSS
$custom: #3154c5;
$custom-light: #7e83d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3154c5",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 197
  },
  "hsl": {
    "h": 225.811,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.48972,
    "c": 0.18094,
    "h": 266.5
  },
  "luminance": 0.11025
}

Semantic roles & 50–950 ramp

primary
#3154C5
secondary
#CDBC85
accent
#BE44E3
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3154C5

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

Preview Lab → · Contrast checker → · Palette generator →

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