#1F4798#1F4798

#1F4798 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.9% C 0.141 H 262.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#1F4798
RGBrgb(31, 71, 152)
HSLhsl(220, 66%, 36%)
HSVhsv(220, 80%, 60%)
CMYKcmyk(79.6%, 53.3%, 0%, 40.4%)
CIE-LABlab(31.95, 16.77, -48.35)
CIE-LCHlch(31.95, 51.18, 289.12°)
OKLaboklab(41.92% -0.0187 -0.1393)
OKLCHoklch(41.92% 0.141 262.3)
XYZxyz(8.4838, 7.0638, 30.6160)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4798 #98701F
analogous
#1F8398 #1F4798 #331F98
triadic
#1F4798 #981F47 #47981F
tetradic
#1F4798 #981F83 #98701F #1F9833
square
#1F4798 #981F83 #98701F #1F9833
split-complementary
#1F4798 #98331F #83981F
monochromatic
#0A1832 #152F65 #1F4798 #295FCB #5582DC

Accessibility & contrast

On white

8.70
#1F4798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#1F4798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4798
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4798#FFFFFF#000000##FFFFFF
##1F47981.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D519B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4798;
/* rgb */ color: rgb(31, 71, 152);
/* oklch */ color: oklch(41.9% 0.141 262.3);
Tailwind
colors: {
  custom: {
    50: '#6e79b7',
    500: '#1f4798',
    950: '#000000',
  },
}
SCSS
$custom: #1f4798;
$custom-light: #6e79b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4798",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 152
  },
  "hsl": {
    "h": 220.165,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41915,
    "c": 0.14054,
    "h": 262.3
  },
  "luminance": 0.07065
}

Semantic roles & 50–950 ramp

primary
#1F4798
secondary
#C09C53
accent
#B13FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4798

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

Preview Lab → · Contrast checker → · Palette generator →

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