#1F4AA0#1F4AA0

#1F4AA0 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.2% C 0.148 H 262.2°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4AA0
RGBrgb(31, 74, 160)
HSLhsl(220, 68%, 37%)
HSVhsv(220, 81%, 63%)
CMYKcmyk(80.6%, 53.7%, 0%, 37.3%)
CIE-LABlab(33.41, 17.92, -50.84)
CIE-LCHlch(33.41, 53.90, 289.41°)
OKLaboklab(43.21% -0.0201 -0.1465)
OKLCHoklch(43.21% 0.148 262.2)
XYZxyz(9.3567, 7.7258, 34.2490)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AA0 #A0751F
analogous
#1F8AA0 #1F4AA0 #351FA0
triadic
#1F4AA0 #A01F4A #4AA01F
tetradic
#1F4AA0 #A01F8A #A0751F #1FA035
square
#1F4AA0 #A01F8A #A0751F #1FA035
split-complementary
#1F4AA0 #A0351F #8AA01F
monochromatic
#0B1B39 #15326D #1F4AA0 #2962D3 #5A87DF

Accessibility & contrast

On white

8.25
#1F4AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1F4AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AA0
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AA0#FFFFFF#000000##FFFFFF
##1F4AA01.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0755A3
Deuteranopia (green-blind)
#00499E
Tritanopia (blue-blind)
#005F6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4aa0;
/* rgb */ color: rgb(31, 74, 160);
/* oklch */ color: oklch(43.2% 0.148 262.2);
Tailwind
colors: {
  custom: {
    50: '#707bbd',
    500: '#1f4aa0',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aa0;
$custom-light: #707bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aa0",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 160
  },
  "hsl": {
    "h": 220,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43208,
    "c": 0.14791,
    "h": 262.2
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#1F4AA0
secondary
#C39F58
accent
#B13DEA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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