#1F4998#1F4998

#1F4998 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.4% C 0.138 H 261.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#1F4998
RGBrgb(31, 73, 152)
HSLhsl(219, 66%, 36%)
HSVhsv(219, 80%, 60%)
CMYKcmyk(79.6%, 52%, 0%, 40.4%)
CIE-LABlab(32.53, 15.40, -47.42)
CIE-LCHlch(32.53, 49.85, 288.00°)
OKLaboklab(42.36% -0.0203 -0.1365)
OKLCHoklch(42.36% 0.138 261.5)
XYZxyz(8.6131, 7.3224, 30.6591)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4998 #986E1F
analogous
#1F8598 #1F4998 #321F98
triadic
#1F4998 #981F49 #49981F
tetradic
#1F4998 #981F85 #986E1F #1F9832
square
#1F4998 #981F85 #986E1F #1F9832
split-complementary
#1F4998 #98321F #85981F
monochromatic
#0A1832 #153165 #1F4998 #2961CB #5584DC

Accessibility & contrast

On white

8.52
#1F4998 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#1F4998 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4998
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4998#FFFFFF#000000##FFFFFF
##1F49981.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4998;
/* rgb */ color: rgb(31, 73, 152);
/* oklch */ color: oklch(42.4% 0.138 261.5);
Tailwind
colors: {
  custom: {
    50: '#6e7bb7',
    500: '#1f4998',
    950: '#000000',
  },
}
SCSS
$custom: #1f4998;
$custom-light: #6e7bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4998",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 152
  },
  "hsl": {
    "h": 219.174,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42355,
    "c": 0.138,
    "h": 261.5
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#1F4998
secondary
#C09A53
accent
#AE3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4998

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

Preview Lab → · Contrast checker → · Palette generator →

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