#1F4A8D#1F4A8D

#1F4A8D is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.7% C 0.121 H 259.1°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#1F4A8D
RGBrgb(31, 74, 141)
HSLhsl(217, 64%, 34%)
HSVhsv(217, 78%, 55%)
CMYKcmyk(78%, 47.5%, 0%, 44.7%)
CIE-LABlab(32.06, 10.32, -41.47)
CIE-LCHlch(32.06, 42.73, 283.97°)
OKLaboklab(41.75% -0.0228 -0.119)
OKLCHoklch(41.75% 0.121 259.1)
XYZxyz(7.8198, 7.1111, 26.1546)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A8D #8D621F
analogous
#1F818D #1F4A8D #2B1F8D
triadic
#1F4A8D #8D1F4A #4A8D1F
tetradic
#1F4A8D #8D1F81 #8D621F #1F8D2B
square
#1F4A8D #8D1F81 #8D621F #1F8D2B
split-complementary
#1F4A8D #8D2B1F #818D1F
monochromatic
#091529 #14305B #1F4A8D #2A64BF #4E84D8

Accessibility & contrast

On white

8.67
#1F4A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A8D
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A8D#FFFFFF#000000##FFFFFF
##1F4A8D1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265190
Deuteranopia (green-blind)
#0B478C
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4a8d;
/* rgb */ color: rgb(31, 74, 141);
/* oklch */ color: oklch(41.7% 0.121 259.1);
Tailwind
colors: {
  custom: {
    50: '#6c7caf',
    500: '#1f4a8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a8d;
$custom-light: #6c7caf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a8d",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 216.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.12114,
    "h": 259.1
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#1F4A8D
secondary
#BB904D
accent
#A641E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080910
muted
#7A7B7F

Preview Lab

Preview with #1F4A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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