#3154A6#3154A6

#3154A6 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.138 H 264.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#3154A6
RGBrgb(49, 84, 166)
HSLhsl(222, 54%, 42%)
HSVhsv(222, 70%, 65%)
CMYKcmyk(70.5%, 49.4%, 0%, 34.9%)
CIE-LABlab(37.38, 15.89, -47.97)
CIE-LCHlch(37.38, 50.53, 288.33°)
OKLaboklab(46.57% -0.0137 -0.1376)
OKLCHoklch(46.57% 0.138 264.3)
XYZxyz(11.3175, 9.7456, 37.3537)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154A6 #A68331
analogous
#318FA6 #3154A6 #4831A6
triadic
#3154A6 #A63154 #54A631
tetradic
#3154A6 #A6318F #A68331 #31A648
square
#3154A6 #A6318F #A68331 #31A648
split-complementary
#3154A6 #A64831 #8FA631
monochromatic
#152447 #233C77 #3154A6 #4A71CA #7A96D8

Accessibility & contrast

On white

7.12
#3154A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3154A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3154A6
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154A6#FFFFFF#000000##FFFFFF
##3154A61.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275EA9
Deuteranopia (green-blind)
#0253A4
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3154a6;
/* rgb */ color: rgb(49, 84, 166);
/* oklch */ color: oklch(46.6% 0.138 264.3);
Tailwind
colors: {
  custom: {
    50: '#7883c1',
    500: '#3154a6',
    950: '#000000',
  },
}
SCSS
$custom: #3154a6;
$custom-light: #7883c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3154a6",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 166
  },
  "hsl": {
    "h": 222.051,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.46571,
    "c": 0.1383,
    "h": 264.3
  },
  "luminance": 0.09747
}

Semantic roles & 50–950 ramp

primary
#3154A6
secondary
#C0A973
accent
#B24ADE
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3154A6

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

Preview Lab → · Contrast checker → · Palette generator →

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