#1F4897#1F4897

#1F4897 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.1% C 0.138 H 261.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#1F4897
RGBrgb(31, 72, 151)
HSLhsl(220, 66%, 36%)
HSVhsv(220, 79%, 59%)
CMYKcmyk(79.5%, 52.3%, 0%, 40.8%)
CIE-LABlab(32.17, 15.68, -47.40)
CIE-LCHlch(32.17, 49.92, 288.31°)
OKLaboklab(42.06% -0.0196 -0.1364)
OKLCHoklch(42.06% 0.138 261.8)
XYZxyz(8.4663, 7.1594, 30.2079)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4897 #976E1F
analogous
#1F8497 #1F4897 #321F97
triadic
#1F4897 #971F48 #48971F
tetradic
#1F4897 #971F84 #976E1F #1F9732
square
#1F4897 #971F84 #976E1F #1F9732
split-complementary
#1F4897 #97321F #84971F
monochromatic
#0A1831 #153064 #1F4897 #2960CA #5483DC

Accessibility & contrast

On white

8.63
#1F4897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F4897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4897
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4897#FFFFFF#000000##FFFFFF
##1F48971.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14519A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4897;
/* rgb */ color: rgb(31, 72, 151);
/* oklch */ color: oklch(42.1% 0.138 261.8);
Tailwind
colors: {
  custom: {
    50: '#6e7ab6',
    500: '#1f4897',
    950: '#000000',
  },
}
SCSS
$custom: #1f4897;
$custom-light: #6e7ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4897",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 151
  },
  "hsl": {
    "h": 219.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42055,
    "c": 0.13785,
    "h": 261.8
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#1F4897
secondary
#BF9A52
accent
#AF3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4897

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

Preview Lab → · Contrast checker → · Palette generator →

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