#1F4FA6#1F4FA6

#1F4FA6 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.8% C 0.150 H 261.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4FA6
RGBrgb(31, 79, 166)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 81%, 65%)
CMYKcmyk(81.3%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.27, 16.93, -51.41)
CIE-LCHlch(35.27, 54.13, 288.22°)
OKLaboklab(44.77% -0.0231 -0.1481)
OKLCHoklch(44.77% 0.15 261.1)
XYZxyz(10.2415, 8.6352, 37.1960)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FA6 #A6761F
analogous
#1F92A6 #1F4FA6 #331FA6
triadic
#1F4FA6 #A61F4F #4FA61F
tetradic
#1F4FA6 #A61F92 #A6761F #1FA633
square
#1F4FA6 #A61F92 #A6761F #1FA633
split-complementary
#1F4FA6 #A6331F #92A61F
monochromatic
#0C1E3F #153672 #1F4FA6 #2B68D7 #5E8DE1

Accessibility & contrast

On white

7.70
#1F4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#1F4FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FA6
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FA6#FFFFFF#000000##FFFFFF
##1F4FA61.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1259A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f4fa6;
/* rgb */ color: rgb(31, 79, 166);
/* oklch */ color: oklch(44.8% 0.150 261.1);
Tailwind
colors: {
  custom: {
    50: '#727fc1',
    500: '#1f4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fa6;
$custom-light: #727fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fa6",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 218.667,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44769,
    "c": 0.14992,
    "h": 261.1
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#1F4FA6
secondary
#C5A05B
accent
#AD3CEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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