#3154AC#3154AC

#3154AC is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.0% C 0.147 H 264.9°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#3154AC
RGBrgb(49, 84, 172)
HSLhsl(223, 56%, 43%)
HSVhsv(223, 72%, 67%)
CMYKcmyk(71.5%, 51.2%, 0%, 32.5%)
CIE-LABlab(37.79, 18.14, -50.88)
CIE-LCHlch(37.79, 54.02, 289.63°)
OKLaboklab(47.01% -0.0129 -0.1462)
OKLCHoklch(47.01% 0.147 264.9)
XYZxyz(11.8807, 9.9709, 40.3202)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154AC #AC8931
analogous
#3191AC #3154AC #4B31AC
triadic
#3154AC #AC3154 #54AC31
tetradic
#3154AC #AC3191 #AC8931 #31AC4B
square
#3154AC #AC3191 #AC8931 #31AC4B
split-complementary
#3154AC #AC4B31 #91AC31
monochromatic
#16254D #233D7C #3154AC #4E72CC #7D98DA

Accessibility & contrast

On white

7.01
#3154AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3154AC
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3154AC#FFFFFF#000000##FFFFFF
##3154AC1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5FAF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006978
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3154ac;
/* rgb */ color: rgb(49, 84, 172);
/* oklch */ color: oklch(47.0% 0.147 264.9);
Tailwind
colors: {
  custom: {
    50: '#7983c5',
    500: '#3154ac',
    950: '#000000',
  },
}
SCSS
$custom: #3154ac;
$custom-light: #7983c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3154ac",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 172
  },
  "hsl": {
    "h": 222.927,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.47012,
    "c": 0.14675,
    "h": 264.9
  },
  "luminance": 0.09972
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3154AC

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

Preview Lab → · Contrast checker → · Palette generator →

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