#3154AA#3154AA

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

Color values

HEX#3154AA
RGBrgb(49, 84, 170)
HSLhsl(223, 55%, 43%)
HSVhsv(223, 71%, 67%)
CMYKcmyk(71.2%, 50.6%, 0%, 33.3%)
CIE-LABlab(37.65, 17.39, -49.91)
CIE-LCHlch(37.65, 52.86, 289.21°)
OKLaboklab(46.86% -0.0132 -0.1433)
OKLCHoklch(46.86% 0.144 264.7)
XYZxyz(11.6901, 9.8947, 39.3162)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154AA #AA8731
analogous
#3190AA #3154AA #4B31AA
triadic
#3154AA #AA3154 #54AA31
tetradic
#3154AA #AA3190 #AA8731 #31AA4B
square
#3154AA #AA3190 #AA8731 #31AA4B
split-complementary
#3154AA #AA4B31 #90AA31
monochromatic
#16254B #233D7A #3154AA #4D71CC #7C97D9

Accessibility & contrast

On white

7.05
#3154AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#3154AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3154AA#FFFFFF#000000##FFFFFF
##3154AA1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225EAD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3154aa;
/* rgb */ color: rgb(49, 84, 170);
/* oklch */ color: oklch(46.9% 0.144 264.7);
Tailwind
colors: {
  custom: {
    50: '#7883c4',
    500: '#3154aa',
    950: '#000000',
  },
}
SCSS
$custom: #3154aa;
$custom-light: #7883c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3154aa",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 170
  },
  "hsl": {
    "h": 222.645,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46864,
    "c": 0.14395,
    "h": 264.7
  },
  "luminance": 0.09896
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3154AA

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

Preview Lab → · Contrast checker → · Palette generator →

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