#3154AB#3154AB

#3154AB is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.145 H 264.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#3154AB
RGBrgb(49, 84, 171)
HSLhsl(223, 55%, 43%)
HSVhsv(223, 71%, 67%)
CMYKcmyk(71.3%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.72, 17.77, -50.40)
CIE-LCHlch(37.72, 53.44, 289.42°)
OKLaboklab(46.94% -0.0131 -0.1448)
OKLCHoklch(46.94% 0.145 264.8)
XYZxyz(11.7850, 9.9327, 39.8163)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154AB #AB8831
analogous
#3191AB #3154AB #4B31AB
triadic
#3154AB #AB3154 #54AB31
tetradic
#3154AB #AB3191 #AB8831 #31AB4B
square
#3154AB #AB3191 #AB8831 #31AB4B
split-complementary
#3154AB #AB4B31 #91AB31
monochromatic
#16254C #233D7B #3154AB #4D72CC #7D97DA

Accessibility & contrast

On white

7.03
#3154AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#3154AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3154AB
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154AB#FFFFFF#000000##FFFFFF
##3154AB1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205FAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3154ab;
/* rgb */ color: rgb(49, 84, 171);
/* oklch */ color: oklch(46.9% 0.145 264.8);
Tailwind
colors: {
  custom: {
    50: '#7983c5',
    500: '#3154ab',
    950: '#000000',
  },
}
SCSS
$custom: #3154ab;
$custom-light: #7983c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3154ab",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 222.787,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46938,
    "c": 0.14535,
    "h": 264.8
  },
  "luminance": 0.09934
}

Semantic roles & 50–950 ramp

primary
#3154AB
secondary
#C2AC75
accent
#B449DF
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3154AB

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

Preview Lab → · Contrast checker → · Palette generator →

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