#1F4AA8#1F4AA8

#1F4AA8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.9% C 0.159 H 263.0°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#1F4AA8
RGBrgb(31, 74, 168)
HSLhsl(221, 69%, 39%)
HSVhsv(221, 82%, 66%)
CMYKcmyk(81.5%, 56%, 0%, 34.1%)
CIE-LABlab(34.01, 21.09, -54.65)
CIE-LCHlch(34.01, 58.58, 291.10°)
OKLaboklab(43.86% -0.0194 -0.1577)
OKLCHoklch(43.86% 0.159 263)
XYZxyz(10.0792, 8.0148, 38.0540)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AA8 #A87D1F
analogous
#1F8FA8 #1F4AA8 #391FA8
triadic
#1F4AA8 #A81F4A #4AA81F
tetradic
#1F4AA8 #A81F8F #A87D1F #1FA839
square
#1F4AA8 #A81F8F #A87D1F #1FA839
split-complementary
#1F4AA8 #A8391F #8FA81F
monochromatic
#0C1C41 #153374 #1F4AA8 #2C62D8 #6089E2

Accessibility & contrast

On white

8.07
#1F4AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4AA8
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AA8#FFFFFF#000000##FFFFFF
##1F4AA81.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4aa8;
/* rgb */ color: rgb(31, 74, 168);
/* oklch */ color: oklch(43.9% 0.159 263.0);
Tailwind
colors: {
  custom: {
    50: '#727bc3',
    500: '#1f4aa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aa8;
$custom-light: #727bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aa8",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 221.168,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.43861,
    "c": 0.15893,
    "h": 263
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#1F4AA8
secondary
#C6A55D
accent
#B53CEC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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