#3154A4#3154A4

#3154A4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.4% C 0.135 H 264.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#3154A4
RGBrgb(49, 84, 164)
HSLhsl(222, 54%, 42%)
HSVhsv(222, 70%, 64%)
CMYKcmyk(70.1%, 48.8%, 0%, 35.7%)
CIE-LABlab(37.25, 15.14, -46.99)
CIE-LCHlch(37.25, 49.37, 287.86°)
OKLaboklab(46.43% -0.014 -0.1347)
OKLCHoklch(46.43% 0.135 264.1)
XYZxyz(11.1354, 9.6728, 36.3950)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154A4 #A48131
analogous
#318EA4 #3154A4 #4831A4
triadic
#3154A4 #A43154 #54A431
tetradic
#3154A4 #A4318E #A48131 #31A448
square
#3154A4 #A4318E #A48131 #31A448
split-complementary
#3154A4 #A44831 #8EA431
monochromatic
#152446 #233C75 #3154A4 #4970C9 #7995D7

Accessibility & contrast

On white

7.16
#3154A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#3154A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3154A4
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154A4#FFFFFF#000000##FFFFFF
##3154A41.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295DA7
Deuteranopia (green-blind)
#0A53A2
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3154a4;
/* rgb */ color: rgb(49, 84, 164);
/* oklch */ color: oklch(46.4% 0.135 264.1);
Tailwind
colors: {
  custom: {
    50: '#7783bf',
    500: '#3154a4',
    950: '#000000',
  },
}
SCSS
$custom: #3154a4;
$custom-light: #7783bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3154a4",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 164
  },
  "hsl": {
    "h": 221.739,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46426,
    "c": 0.13546,
    "h": 264.1
  },
  "luminance": 0.09674
}

Semantic roles & 50–950 ramp

primary
#3154A4
secondary
#BFA872
accent
#B14ADD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3154A4

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

Preview Lab → · Contrast checker → · Palette generator →

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