#1F4A8A#1F4A8A

#1F4A8A is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.5% C 0.117 H 258.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#1F4A8A
RGBrgb(31, 74, 138)
HSLhsl(216, 63%, 33%)
HSVhsv(216, 78%, 54%)
CMYKcmyk(77.5%, 46.4%, 0%, 45.9%)
CIE-LABlab(31.86, 9.11, -39.94)
CIE-LCHlch(31.86, 40.97, 282.85°)
OKLaboklab(41.53% -0.0234 -0.1145)
OKLCHoklch(41.53% 0.117 258.5)
XYZxyz(7.5996, 7.0230, 24.9949)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A8A #8A5F1F
analogous
#1F7F8A #1F4A8A #291F8A
triadic
#1F4A8A #8A1F4A #4A8A1F
tetradic
#1F4A8A #8A1F7F #8A5F1F #1F8A29
square
#1F4A8A #8A1F7F #8A5F1F #1F8A29
split-complementary
#1F4A8A #8A291F #7F8A1F
monochromatic
#091426 #142F58 #1F4A8A #2A65BC #4C84D7

Accessibility & contrast

On white

8.73
#1F4A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1F4A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A8A
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A8A#FFFFFF#000000##FFFFFF
##1F4A8A1.008.732.408.73
#FFFFFF8.731.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29508C
Deuteranopia (green-blind)
#124689
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4a8a;
/* rgb */ color: rgb(31, 74, 138);
/* oklch */ color: oklch(41.5% 0.117 258.5);
Tailwind
colors: {
  custom: {
    50: '#6b7cac',
    500: '#1f4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a8a;
$custom-light: #6b7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a8a",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 215.888,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.41531,
    "c": 0.11685,
    "h": 258.5
  },
  "luminance": 0.07024
}

Semantic roles & 50–950 ramp

primary
#1F4A8A
secondary
#BA8D4B
accent
#A441E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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