#3154AF#3154AF

#3154AF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.2% C 0.151 H 265.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#3154AF
RGBrgb(49, 84, 175)
HSLhsl(223, 56%, 44%)
HSVhsv(223, 72%, 69%)
CMYKcmyk(72%, 52%, 0%, 31.4%)
CIE-LABlab(38.00, 19.27, -52.32)
CIE-LCHlch(38.00, 55.76, 290.22°)
OKLaboklab(47.24% -0.0126 -0.1504)
OKLCHoklch(47.24% 0.151 265.2)
XYZxyz(12.1721, 10.0875, 41.8547)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3154AF #AF8C31
analogous
#3193AF #3154AF #4D31AF
triadic
#3154AF #AF3154 #54AF31
tetradic
#3154AF #AF3193 #AF8C31 #31AF4D
square
#3154AF #AF3193 #AF8C31 #31AF4D
split-complementary
#3154AF #AF4D31 #93AF31
monochromatic
#16264F #243D7F #3154AF #4F73CE #7F99DB

Accessibility & contrast

On white

6.96
#3154AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#3154AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3154AF#FFFFFF#000000##FFFFFF
##3154AF1.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A60B2
Deuteranopia (green-blind)
#0054AD
Tritanopia (blue-blind)
#006A79
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3154af;
/* rgb */ color: rgb(49, 84, 175);
/* oklch */ color: oklch(47.2% 0.151 265.2);
Tailwind
colors: {
  custom: {
    50: '#7983c7',
    500: '#3154af',
    950: '#000000',
  },
}
SCSS
$custom: #3154af;
$custom-light: #7983c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3154af",
  "rgb": {
    "r": 49,
    "g": 84,
    "b": 175
  },
  "hsl": {
    "h": 223.333,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47237,
    "c": 0.15094,
    "h": 265.2
  },
  "luminance": 0.10089
}

Semantic roles & 50–950 ramp

primary
#3154AF
secondary
#C4AF78
accent
#B648E0
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3154AF

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

Preview Lab → · Contrast checker → · Palette generator →

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