#1F4597#1F4597

#1F4597 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.4% C 0.142 H 263.0°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#1F4597
RGBrgb(31, 69, 151)
HSLhsl(221, 66%, 36%)
HSVhsv(221, 79%, 59%)
CMYKcmyk(79.5%, 54.3%, 0%, 40.8%)
CIE-LABlab(31.30, 17.73, -48.79)
CIE-LCHlch(31.30, 51.92, 289.97°)
OKLaboklab(41.4% -0.0173 -0.1406)
OKLCHoklch(41.4% 0.142 263)
XYZxyz(8.2771, 6.7810, 30.1448)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4597 #97711F
analogous
#1F8197 #1F4597 #351F97
triadic
#1F4597 #971F45 #45971F
tetradic
#1F4597 #971F81 #97711F #1F9735
square
#1F4597 #971F81 #97711F #1F9735
split-complementary
#1F4597 #97351F #81971F
monochromatic
#0A1731 #152E64 #1F4597 #295CCA #547FDC

Accessibility & contrast

On white

8.91
#1F4597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F4597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4597
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4597#FFFFFF#000000##FFFFFF
##1F45971.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044F9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4597;
/* rgb */ color: rgb(31, 69, 151);
/* oklch */ color: oklch(41.4% 0.142 263.0);
Tailwind
colors: {
  custom: {
    50: '#6e78b6',
    500: '#1f4597',
    950: '#000000',
  },
}
SCSS
$custom: #1f4597;
$custom-light: #6e78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4597",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 151
  },
  "hsl": {
    "h": 221,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41398,
    "c": 0.14169,
    "h": 263
  },
  "luminance": 0.06782
}

Semantic roles & 50–950 ramp

primary
#1F4597
secondary
#BF9D52
accent
#B33FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4597

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

Preview Lab → · Contrast checker → · Palette generator →

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