#1F4F97#1F4F97

#1F4F97 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.129 H 258.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#1F4F97
RGBrgb(31, 79, 151)
HSLhsl(216, 66%, 36%)
HSVhsv(216, 79%, 59%)
CMYKcmyk(79.5%, 47.7%, 0%, 40.8%)
CIE-LABlab(34.22, 10.95, -44.08)
CIE-LCHlch(34.22, 45.42, 283.95°)
OKLaboklab(43.63% -0.0253 -0.1265)
OKLCHoklch(43.63% 0.129 258.7)
XYZxyz(8.9449, 8.1166, 30.3674)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F97 #97671F
analogous
#1F8B97 #1F4F97 #2B1F97
triadic
#1F4F97 #971F4F #4F971F
tetradic
#1F4F97 #971F8B #97671F #1F972B
square
#1F4F97 #971F8B #97671F #1F972B
split-complementary
#1F4F97 #972B1F #8B971F
monochromatic
#0A1A31 #153464 #1F4F97 #296ACA #548BDC

Accessibility & contrast

On white

8.00
#1F4F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F4F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F97
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F97#FFFFFF#000000##FFFFFF
##1F4F971.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28569A
Deuteranopia (green-blind)
#064B96
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4f97;
/* rgb */ color: rgb(31, 79, 151);
/* oklch */ color: oklch(43.6% 0.129 258.7);
Tailwind
colors: {
  custom: {
    50: '#6e7fb6',
    500: '#1f4f97',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f97;
$custom-light: #6e7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f97",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 151
  },
  "hsl": {
    "h": 216,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43632,
    "c": 0.12906,
    "h": 258.7
  },
  "luminance": 0.08118
}

Semantic roles & 50–950 ramp

primary
#1F4F97
secondary
#BF9452
accent
#A53FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4F97

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

Preview Lab → · Contrast checker → · Palette generator →

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