#1F4997#1F4997

#1F4997 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.3% C 0.137 H 261.4°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#1F4997
RGBrgb(31, 73, 151)
HSLhsl(219, 66%, 36%)
HSVhsv(219, 79%, 59%)
CMYKcmyk(79.5%, 51.7%, 0%, 40.8%)
CIE-LABlab(32.46, 15.00, -46.93)
CIE-LCHlch(32.46, 49.26, 287.73°)
OKLaboklab(42.28% -0.0204 -0.135)
OKLCHoklch(42.28% 0.137 261.4)
XYZxyz(8.5315, 7.2898, 30.2296)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4997 #976D1F
analogous
#1F8597 #1F4997 #311F97
triadic
#1F4997 #971F49 #49971F
tetradic
#1F4997 #971F85 #976D1F #1F9731
square
#1F4997 #971F85 #976D1F #1F9731
split-complementary
#1F4997 #97311F #85971F
monochromatic
#0A1831 #153064 #1F4997 #2962CA #5484DC

Accessibility & contrast

On white

8.54
#1F4997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F4997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4997
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4997#FFFFFF#000000##FFFFFF
##1F49971.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17529A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4997;
/* rgb */ color: rgb(31, 73, 151);
/* oklch */ color: oklch(42.3% 0.137 261.4);
Tailwind
colors: {
  custom: {
    50: '#6e7bb6',
    500: '#1f4997',
    950: '#000000',
  },
}
SCSS
$custom: #1f4997;
$custom-light: #6e7bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4997",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 151
  },
  "hsl": {
    "h": 219,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42277,
    "c": 0.13659,
    "h": 261.4
  },
  "luminance": 0.07291
}

Semantic roles & 50–950 ramp

primary
#1F4997
secondary
#BF9952
accent
#AD3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4997

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

Preview Lab → · Contrast checker → · Palette generator →

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