#1F5099#1F5099

#1F5099 is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.0% C 0.131 H 258.6°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#1F5099
RGBrgb(31, 80, 153)
HSLhsl(216, 66%, 36%)
HSVhsv(216, 80%, 60%)
CMYKcmyk(79.7%, 47.7%, 0%, 40%)
CIE-LABlab(34.66, 11.07, -44.59)
CIE-LCHlch(34.66, 45.95, 283.95°)
OKLaboklab(44.01% -0.0258 -0.128)
OKLCHoklch(44.01% 0.131 258.6)
XYZxyz(9.1814, 8.3275, 31.2543)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F5099 #99681F
analogous
#1F8D99 #1F5099 #2B1F99
triadic
#1F5099 #991F50 #50991F
tetradic
#1F5099 #991F8D #99681F #1F992B
square
#1F5099 #991F8D #99681F #1F992B
split-complementary
#1F5099 #992B1F #8D991F
monochromatic
#0A1B33 #153566 #1F5099 #296BCC #568CDD

Accessibility & contrast

On white

7.88
#1F5099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#1F5099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F5099
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F5099#FFFFFF#000000##FFFFFF
##1F50991.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28579C
Deuteranopia (green-blind)
#054C98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f5099;
/* rgb */ color: rgb(31, 80, 153);
/* oklch */ color: oklch(44.0% 0.131 258.6);
Tailwind
colors: {
  custom: {
    50: '#6e80b7',
    500: '#1f5099',
    950: '#000000',
  },
}
SCSS
$custom: #1f5099;
$custom-light: #6e80b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f5099",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 153
  },
  "hsl": {
    "h": 215.902,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44007,
    "c": 0.13063,
    "h": 258.6
  },
  "luminance": 0.08329
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F5099

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

Preview Lab → · Contrast checker → · Palette generator →

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