#3154A3#3154A3

#3154A3 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.4% C 0.134 H 263.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#3154A3
RGBrgb(49, 84, 163)
HSLhsl(222, 54%, 42%)
HSVhsv(222, 70%, 64%)
CMYKcmyk(69.9%, 48.5%, 0%, 36.1%)
CIE-LABlab(37.18, 14.76, -46.50)
CIE-LCHlch(37.18, 48.79, 287.61°)
OKLaboklab(46.35% -0.0141 -0.1333)
OKLCHoklch(46.35% 0.134 263.9)
XYZxyz(11.0455, 9.6368, 35.9212)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154A3 #A38031
analogous
#318DA3 #3154A3 #4731A3
triadic
#3154A3 #A33154 #54A331
tetradic
#3154A3 #A3318D #A38031 #31A347
square
#3154A3 #A3318D #A38031 #31A347
split-complementary
#3154A3 #A34731 #8DA331
monochromatic
#152445 #233C74 #3154A3 #4970C8 #7895D6

Accessibility & contrast

On white

7.17
#3154A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3154A3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154A3#FFFFFF#000000##FFFFFF
##3154A31.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5DA6
Deuteranopia (green-blind)
#0D53A1
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3154a3;
/* rgb */ color: rgb(49, 84, 163);
/* oklch */ color: oklch(46.4% 0.134 263.9);
Tailwind
colors: {
  custom: {
    50: '#7783bf',
    500: '#3154a3',
    950: '#000000',
  },
}
SCSS
$custom: #3154a3;
$custom-light: #7783bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3154a3",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 163
  },
  "hsl": {
    "h": 221.579,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46354,
    "c": 0.13404,
    "h": 263.9
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#3154A3
secondary
#BFA771
accent
#B04BDD
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #3154A3

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

Preview Lab → · Contrast checker → · Palette generator →

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