#1F4FB4#1F4FB4

#1F4FB4 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.9% C 0.169 H 262.6°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#1F4FB4
RGBrgb(31, 79, 180)
HSLhsl(221, 71%, 41%)
HSVhsv(221, 83%, 71%)
CMYKcmyk(82.8%, 56.1%, 0%, 29.4%)
CIE-LABlab(36.32, 22.46, -58.02)
CIE-LCHlch(36.32, 62.22, 291.16°)
OKLaboklab(45.9% -0.0217 -0.1676)
OKLCHoklch(45.9% 0.169 262.6)
XYZxyz(11.5963, 9.1771, 44.3313)
Luminance0.0918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FB4 #B4841F
analogous
#1F9AB4 #1F4FB4 #3A1FB4
triadic
#1F4FB4 #B41F4F #4FB41F
tetradic
#1F4FB4 #B41F9A #B4841F #1FB43A
square
#1F4FB4 #B41F9A #B4841F #1FB43A
split-complementary
#1F4FB4 #B43A1F #9AB41F
monochromatic
#0D214C #163880 #1F4FB4 #346ADC #6891E5

Accessibility & contrast

On white

7.41
#1F4FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#1F4FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FB4
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FB4#FFFFFF#000000##FFFFFF
##1F4FB41.007.412.847.41
#FFFFFF7.411.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#004FB2
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #1f4fb4;
/* rgb */ color: rgb(31, 79, 180);
/* oklch */ color: oklch(45.9% 0.169 262.6);
Tailwind
colors: {
  custom: {
    50: '#757fcb',
    500: '#1f4fb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fb4;
$custom-light: #757fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fb4",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 220.671,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45899,
    "c": 0.16898,
    "h": 262.6
  },
  "luminance": 0.09179
}

Semantic roles & 50–950 ramp

primary
#1F4FB4
secondary
#CBAA64
accent
#B43AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F4FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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