#1F4FA0#1F4FA0

#1F4FA0 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.142 H 260.3°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#1F4FA0
RGBrgb(31, 79, 160)
HSLhsl(218, 68%, 37%)
HSVhsv(218, 81%, 63%)
CMYKcmyk(80.6%, 50.6%, 0%, 37.3%)
CIE-LABlab(34.84, 14.54, -48.51)
CIE-LCHlch(34.84, 50.64, 286.68°)
OKLaboklab(44.31% -0.0239 -0.1396)
OKLCHoklch(44.31% 0.142 260.3)
XYZxyz(9.7039, 8.4202, 34.3647)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4FA0 #A0701F
analogous
#1F90A0 #1F4FA0 #2F1FA0
triadic
#1F4FA0 #A01F4F #4FA01F
tetradic
#1F4FA0 #A01F90 #A0701F #1FA02F
square
#1F4FA0 #A01F90 #A0701F #1FA02F
split-complementary
#1F4FA0 #A02F1F #90A01F
monochromatic
#0B1C39 #15366D #1F4FA0 #2968D3 #5A8CDF

Accessibility & contrast

On white

7.82
#1F4FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F4FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4FA0
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4FA0#FFFFFF#000000##FFFFFF
##1F4FA01.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D58A3
Deuteranopia (green-blind)
#004C9E
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4fa0;
/* rgb */ color: rgb(31, 79, 160);
/* oklch */ color: oklch(44.3% 0.142 260.3);
Tailwind
colors: {
  custom: {
    50: '#707fbd',
    500: '#1f4fa0',
    950: '#000000',
  },
}
SCSS
$custom: #1f4fa0;
$custom-light: #707fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4fa0",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 160
  },
  "hsl": {
    "h": 217.674,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.44305,
    "c": 0.14162,
    "h": 260.3
  },
  "luminance": 0.08421
}

Semantic roles & 50–950 ramp

primary
#1F4FA0
secondary
#C39B58
accent
#AA3DEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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