#1F5097#1F5097

#1F5097 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 43.9% C 0.128 H 258.2°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#1F5097
RGBrgb(31, 80, 151)
HSLhsl(216, 66%, 36%)
HSVhsv(216, 79%, 59%)
CMYKcmyk(79.5%, 47%, 0%, 40.8%)
CIE-LABlab(34.52, 10.28, -43.60)
CIE-LCHlch(34.52, 44.79, 283.26°)
OKLaboklab(43.86% -0.0262 -0.1251)
OKLCHoklch(43.86% 0.128 258.2)
XYZxyz(9.0176, 8.2619, 30.3916)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5097 #97661F
analogous
#1F8C97 #1F5097 #2A1F97
triadic
#1F5097 #971F50 #50971F
tetradic
#1F5097 #971F8C #97661F #1F972A
square
#1F5097 #971F8C #97661F #1F972A
split-complementary
#1F5097 #972A1F #8C971F
monochromatic
#0A1A31 #153564 #1F5097 #296BCA #548CDC

Accessibility & contrast

On white

7.92
#1F5097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F5097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5097
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5097#FFFFFF#000000##FFFFFF
##1F50971.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#0C4C96
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f5097;
/* rgb */ color: rgb(31, 80, 151);
/* oklch */ color: oklch(43.9% 0.128 258.2);
Tailwind
colors: {
  custom: {
    50: '#6e80b6',
    500: '#1f5097',
    950: '#000000',
  },
}
SCSS
$custom: #1f5097;
$custom-light: #6e80b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5097",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 151
  },
  "hsl": {
    "h": 215.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43862,
    "c": 0.12783,
    "h": 258.2
  },
  "luminance": 0.08263
}

Semantic roles & 50–950 ramp

primary
#1F5097
secondary
#BF9352
accent
#A33FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F5097

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

Preview Lab → · Contrast checker → · Palette generator →

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