#1F5AB4#1F5AB4

#1F5AB4 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.2% C 0.155 H 259.1°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#1F5AB4
RGBrgb(31, 90, 180)
HSLhsl(216, 71%, 41%)
HSVhsv(216, 83%, 71%)
CMYKcmyk(82.8%, 50%, 0%, 29.4%)
CIE-LABlab(39.41, 15.15, -53.02)
CIE-LCHlch(39.41, 55.14, 285.95°)
OKLaboklab(48.25% -0.0293 -0.1526)
OKLCHoklch(48.25% 0.155 259.1)
XYZxyz(12.4564, 10.8974, 44.6181)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AB4 #B4791F
analogous
#1FA5B4 #1F5AB4 #2F1FB4
triadic
#1F5AB4 #B41F5A #5AB41F
tetradic
#1F5AB4 #B41FA5 #B4791F #1FB42F
square
#1F5AB4 #B41FA5 #B4791F #1FB42F
split-complementary
#1F5AB4 #B42F1F #A5B41F
monochromatic
#0D264C #164080 #1F5AB4 #3477DC #689AE5

Accessibility & contrast

On white

6.60
#1F5AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#1F5AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AB4
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AB4#FFFFFF#000000##FFFFFF
##1F5AB41.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2264B7
Deuteranopia (green-blind)
#0057B2
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5ab4;
/* rgb */ color: rgb(31, 90, 180);
/* oklch */ color: oklch(48.2% 0.155 259.1);
Tailwind
colors: {
  custom: {
    50: '#7488cb',
    500: '#1f5ab4',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ab4;
$custom-light: #7488cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ab4",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 180
  },
  "hsl": {
    "h": 216.242,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48247,
    "c": 0.15545,
    "h": 259.1
  },
  "luminance": 0.10899
}

Semantic roles & 50–950 ramp

primary
#1F5AB4
secondary
#CBA264
accent
#A73AED
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F5AB4

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

Preview Lab → · Contrast checker → · Palette generator →

#1F5AB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva