#1F4AB4#1F4AB4

#1F4AB4 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.175 H 263.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#1F4AB4
RGBrgb(31, 74, 180)
HSLhsl(223, 71%, 41%)
HSVhsv(223, 83%, 71%)
CMYKcmyk(82.8%, 58.9%, 0%, 29.4%)
CIE-LABlab(34.97, 25.79, -60.23)
CIE-LCHlch(34.97, 65.52, 293.18°)
OKLaboklab(44.88% -0.0186 -0.1741)
OKLCHoklch(44.88% 0.175 263.9)
XYZxyz(11.2491, 8.4828, 44.2156)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AB4 #B4891F
analogous
#1F95B4 #1F4AB4 #3F1FB4
triadic
#1F4AB4 #B41F4A #4AB41F
tetradic
#1F4AB4 #B41F95 #B4891F #1FB43F
square
#1F4AB4 #B41F95 #B4891F #1FB43F
split-complementary
#1F4AB4 #B43F1F #95B41F
monochromatic
#0D1F4C #163580 #1F4AB4 #3465DC #688CE5

Accessibility & contrast

On white

7.79
#1F4AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1F4AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AB4
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AB4#FFFFFF#000000##FFFFFF
##1F4AB41.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4ab4;
/* rgb */ color: rgb(31, 74, 180);
/* oklch */ color: oklch(44.9% 0.175 263.9);
Tailwind
colors: {
  custom: {
    50: '#757ccb',
    500: '#1f4ab4',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ab4;
$custom-light: #757ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ab4",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 180
  },
  "hsl": {
    "h": 222.685,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44879,
    "c": 0.17513,
    "h": 263.9
  },
  "luminance": 0.08484
}

Semantic roles & 50–950 ramp

primary
#1F4AB4
secondary
#CBAD64
accent
#BA3AED
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #1F4AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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