#1F4F98#1F4F98

#1F4F98 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.7% C 0.130 H 258.9°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#1F4F98
RGBrgb(31, 79, 152)
HSLhsl(216, 66%, 36%)
HSVhsv(216, 80%, 60%)
CMYKcmyk(79.6%, 48%, 0%, 40.4%)
CIE-LABlab(34.29, 11.35, -44.57)
CIE-LCHlch(34.29, 46.00, 284.28°)
OKLaboklab(43.71% -0.0252 -0.128)
OKLCHoklch(43.71% 0.13 258.9)
XYZxyz(9.0265, 8.1492, 30.7969)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F98 #98681F
analogous
#1F8B98 #1F4F98 #2B1F98
triadic
#1F4F98 #981F4F #4F981F
tetradic
#1F4F98 #981F8B #98681F #1F982B
square
#1F4F98 #981F8B #98681F #1F982B
split-complementary
#1F4F98 #982B1F #8B981F
monochromatic
#0A1A32 #153565 #1F4F98 #2969CB #558BDC

Accessibility & contrast

On white

7.98
#1F4F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1F4F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F98
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F98#FFFFFF#000000##FFFFFF
##1F4F981.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27579B
Deuteranopia (green-blind)
#024B97
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4f98;
/* rgb */ color: rgb(31, 79, 152);
/* oklch */ color: oklch(43.7% 0.130 258.9);
Tailwind
colors: {
  custom: {
    50: '#6e7fb7',
    500: '#1f4f98',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f98;
$custom-light: #6e7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f98",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 152
  },
  "hsl": {
    "h": 216.198,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43705,
    "c": 0.13046,
    "h": 258.9
  },
  "luminance": 0.0815
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4F98

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

Preview Lab → · Contrast checker → · Palette generator →

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