#1F4DB4#1F4DB4

#1F4DB4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.5% C 0.171 H 263.1°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#1F4DB4
RGBrgb(31, 77, 180)
HSLhsl(221, 71%, 41%)
HSVhsv(221, 83%, 71%)
CMYKcmyk(82.8%, 57.2%, 0%, 29.4%)
CIE-LABlab(35.78, 23.79, -58.91)
CIE-LCHlch(35.78, 63.53, 291.99°)
OKLaboklab(45.49% -0.0205 -0.1702)
OKLCHoklch(45.49% 0.171 263.1)
XYZxyz(11.4542, 8.8930, 44.2840)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4DB4 #B4861F
analogous
#1F98B4 #1F4DB4 #3C1FB4
triadic
#1F4DB4 #B41F4D #4DB41F
tetradic
#1F4DB4 #B41F98 #B4861F #1FB43C
square
#1F4DB4 #B41F98 #B4861F #1FB43C
split-complementary
#1F4DB4 #B43C1F #98B41F
monochromatic
#0D204C #163780 #1F4DB4 #3468DC #688FE5

Accessibility & contrast

On white

7.56
#1F4DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#1F4DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4DB4
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4DB4#FFFFFF#000000##FFFFFF
##1F4DB41.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB8
Deuteranopia (green-blind)
#004EB2
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f4db4;
/* rgb */ color: rgb(31, 77, 180);
/* oklch */ color: oklch(45.5% 0.171 263.1);
Tailwind
colors: {
  custom: {
    50: '#757ecb',
    500: '#1f4db4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4db4;
$custom-light: #757ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4db4",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 221.477,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45487,
    "c": 0.17145,
    "h": 263.1
  },
  "luminance": 0.08894
}

Semantic roles & 50–950 ramp

primary
#1F4DB4
secondary
#CBAB64
accent
#B63AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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