#1F4AA1#1F4AA1

#1F4AA1 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.3% C 0.149 H 262.3°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#1F4AA1
RGBrgb(31, 74, 161)
HSLhsl(220, 68%, 38%)
HSVhsv(220, 81%, 63%)
CMYKcmyk(80.7%, 54%, 0%, 36.9%)
CIE-LABlab(33.48, 18.31, -51.32)
CIE-LCHlch(33.48, 54.49, 289.64°)
OKLaboklab(43.29% -0.02 -0.1479)
OKLCHoklch(43.29% 0.149 262.3)
XYZxyz(9.4446, 7.7610, 34.7115)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4AA1 #A1761F
analogous
#1F8BA1 #1F4AA1 #351FA1
triadic
#1F4AA1 #A11F4A #4AA11F
tetradic
#1F4AA1 #A11F8B #A1761F #1FA135
square
#1F4AA1 #A11F8B #A1761F #1FA135
split-complementary
#1F4AA1 #A1351F #8BA11F
monochromatic
#0B1B3A #15326E #1F4AA1 #2962D4 #5B87DF

Accessibility & contrast

On white

8.23
#1F4AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4AA1
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4AA1#FFFFFF#000000##FFFFFF
##1F4AA11.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0455A4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4aa1;
/* rgb */ color: rgb(31, 74, 161);
/* oklch */ color: oklch(43.3% 0.149 262.3);
Tailwind
colors: {
  custom: {
    50: '#717bbd',
    500: '#1f4aa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f4aa1;
$custom-light: #717bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4aa1",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 161
  },
  "hsl": {
    "h": 220.154,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.43289,
    "c": 0.1493,
    "h": 262.3
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#1F4AA1
secondary
#C4A058
accent
#B13DEB
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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