#1F5AB3#1F5AB3

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

Color values

HEX#1F5AB3
RGBrgb(31, 90, 179)
HSLhsl(216, 70%, 41%)
HSVhsv(216, 83%, 70%)
CMYKcmyk(82.7%, 49.7%, 0%, 29.8%)
CIE-LABlab(39.34, 14.75, -52.55)
CIE-LCHlch(39.34, 54.58, 285.68°)
OKLaboklab(48.17% -0.0295 -0.1512)
OKLCHoklch(48.17% 0.154 259)
XYZxyz(12.3549, 10.8568, 44.0835)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AB3 #B3781F
analogous
#1FA4B3 #1F5AB3 #2E1FB3
triadic
#1F5AB3 #B31F5A #5AB31F
tetradic
#1F5AB3 #B31FA4 #B3781F #1FB32E
square
#1F5AB3 #B31FA4 #B3781F #1FB32E
split-complementary
#1F5AB3 #B32E1F #A4B31F
monochromatic
#0D264B #16407F #1F5AB3 #3377DC #689AE5

Accessibility & contrast

On white

6.62
#1F5AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#1F5AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AB3
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AB3#FFFFFF#000000##FFFFFF
##1F5AB31.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2464B6
Deuteranopia (green-blind)
#0056B1
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #1f5ab3;
/* rgb */ color: rgb(31, 90, 179);
/* oklch */ color: oklch(48.2% 0.154 259.0);
Tailwind
colors: {
  custom: {
    50: '#7488ca',
    500: '#1f5ab3',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ab3;
$custom-light: #7488ca;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ab3",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 216.081,
    "s": 70.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48172,
    "c": 0.15409,
    "h": 259
  },
  "luminance": 0.10858
}

Semantic roles & 50–950 ramp

primary
#1F5AB3
secondary
#CAA164
accent
#A63BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F5AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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