#1F5AB0#1F5AB0

#1F5AB0 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 47.9% C 0.150 H 258.5°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#1F5AB0
RGBrgb(31, 90, 176)
HSLhsl(216, 70%, 41%)
HSVhsv(216, 82%, 69%)
CMYKcmyk(82.4%, 48.9%, 0%, 31%)
CIE-LABlab(39.13, 13.57, -51.11)
CIE-LCHlch(39.13, 52.88, 284.87°)
OKLaboklab(47.95% -0.03 -0.147)
OKLCHoklch(47.95% 0.15 258.5)
XYZxyz(12.0548, 10.7368, 42.5029)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5AB0 #B0751F
analogous
#1FA2B0 #1F5AB0 #2C1FB0
triadic
#1F5AB0 #B01F5A #5AB01F
tetradic
#1F5AB0 #B01FA2 #B0751F #1FB02C
square
#1F5AB0 #B01FA2 #B0751F #1FB02C
split-complementary
#1F5AB0 #B02C1F #A2B01F
monochromatic
#0D2548 #163F7C #1F5AB0 #3176DB #6599E4

Accessibility & contrast

On white

6.67
#1F5AB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#1F5AB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #1F5AB0
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5AB0#FFFFFF#000000##FFFFFF
##1F5AB01.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B3
Deuteranopia (green-blind)
#0056AE
Tritanopia (blue-blind)
#006F7C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #1f5ab0;
/* rgb */ color: rgb(31, 90, 176);
/* oklch */ color: oklch(47.9% 0.150 258.5);
Tailwind
colors: {
  custom: {
    50: '#7388c8',
    500: '#1f5ab0',
    950: '#000000',
  },
}
SCSS
$custom: #1f5ab0;
$custom-light: #7388c8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5ab0",
  "rgb": {
    "r": 31,
    "g": 90,
    "b": 176
  },
  "hsl": {
    "h": 215.586,
    "s": 70.048,
    "l": 40.588
  },
  "oklch": {
    "l": 0.47949,
    "c": 0.15004,
    "h": 258.5
  },
  "luminance": 0.10738
}

Semantic roles & 50–950 ramp

primary
#1F5AB0
secondary
#C99F62
accent
#A43BED
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #1F5AB0

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

Preview Lab → · Contrast checker → · Palette generator →

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