#1F4AA7#1F4AA7

#1F4AA7 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.8% C 0.158 H 262.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#1F4AA7
RGBrgb(31, 74, 167)
HSLhsl(221, 69%, 39%)
HSVhsv(221, 81%, 65%)
CMYKcmyk(81.4%, 55.7%, 0%, 34.5%)
CIE-LABlab(33.94, 20.69, -54.17)
CIE-LCHlch(33.94, 57.99, 290.90°)
OKLaboklab(43.78% -0.0195 -0.1564)
OKLCHoklch(43.78% 0.158 262.9)
XYZxyz(9.9864, 7.9777, 37.5652)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AA7 #A77C1F
analogous
#1F8EA7 #1F4AA7 #381FA7
triadic
#1F4AA7 #A71F4A #4AA71F
tetradic
#1F4AA7 #A71F8E #A77C1F #1FA738
square
#1F4AA7 #A71F8E #A77C1F #1FA738
split-complementary
#1F4AA7 #A7381F #8EA71F
monochromatic
#0C1C40 #153373 #1F4AA7 #2B62D8 #5F88E1

Accessibility & contrast

On white

8.09
#1F4AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F4AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AA7
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AA7#FFFFFF#000000##FFFFFF
##1F4AA71.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#004AA5
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4aa7;
/* rgb */ color: rgb(31, 74, 167);
/* oklch */ color: oklch(43.8% 0.158 262.9);
Tailwind
colors: {
  custom: {
    50: '#727bc2',
    500: '#1f4aa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aa7;
$custom-light: #727bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aa7",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 167
  },
  "hsl": {
    "h": 221.029,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.15757,
    "h": 262.9
  },
  "luminance": 0.07979
}

Semantic roles & 50–950 ramp

primary
#1F4AA7
secondary
#C6A45C
accent
#B43CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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