#1F4AA6#1F4AA6

#1F4AA6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.7% C 0.156 H 262.8°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#1F4AA6
RGBrgb(31, 74, 166)
HSLhsl(221, 69%, 39%)
HSVhsv(221, 81%, 65%)
CMYKcmyk(81.3%, 55.4%, 0%, 34.9%)
CIE-LABlab(33.86, 20.30, -53.70)
CIE-LCHlch(33.86, 57.41, 290.70°)
OKLaboklab(43.7% -0.0195 -0.155)
OKLCHoklch(43.7% 0.156 262.8)
XYZxyz(9.8943, 7.9409, 37.0803)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AA6 #A67B1F
analogous
#1F8DA6 #1F4AA6 #371FA6
triadic
#1F4AA6 #A61F4A #4AA61F
tetradic
#1F4AA6 #A61F8D #A67B1F #1FA637
square
#1F4AA6 #A61F8D #A67B1F #1FA637
split-complementary
#1F4AA6 #A6371F #8DA61F
monochromatic
#0C1C3F #153372 #1F4AA6 #2B62D7 #5E88E1

Accessibility & contrast

On white

8.11
#1F4AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4AA6
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AA6#FFFFFF#000000##FFFFFF
##1F4AA61.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A9
Deuteranopia (green-blind)
#004AA4
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4aa6;
/* rgb */ color: rgb(31, 74, 166);
/* oklch */ color: oklch(43.7% 0.156 262.8);
Tailwind
colors: {
  custom: {
    50: '#727bc1',
    500: '#1f4aa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aa6;
$custom-light: #727bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aa6",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 166
  },
  "hsl": {
    "h": 220.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.43696,
    "c": 0.1562,
    "h": 262.8
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#1F4AA6
secondary
#C5A45B
accent
#B43CEB
background
#F7F7FC
surface
#EDEDF8
border
#C8C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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