#1F4C98#1F4C98

#1F4C98 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.0% C 0.134 H 260.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#1F4C98
RGBrgb(31, 76, 152)
HSLhsl(218, 66%, 36%)
HSVhsv(218, 80%, 60%)
CMYKcmyk(79.6%, 50%, 0%, 40.4%)
CIE-LABlab(33.41, 13.37, -46.00)
CIE-LCHlch(33.41, 47.90, 286.20°)
OKLaboklab(43.03% -0.0227 -0.1323)
OKLCHoklch(43.03% 0.134 260.3)
XYZxyz(8.8150, 7.7262, 30.7264)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C98 #986B1F
analogous
#1F8898 #1F4C98 #2E1F98
triadic
#1F4C98 #981F4C #4C981F
tetradic
#1F4C98 #981F88 #986B1F #1F982E
square
#1F4C98 #981F88 #986B1F #1F982E
split-complementary
#1F4C98 #982E1F #88981F
monochromatic
#0A1932 #153365 #1F4C98 #2965CB #5587DC

Accessibility & contrast

On white

8.25
#1F4C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#1F4C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C98
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C98#FFFFFF#000000##FFFFFF
##1F4C981.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F549B
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4c98;
/* rgb */ color: rgb(31, 76, 152);
/* oklch */ color: oklch(43.0% 0.134 260.3);
Tailwind
colors: {
  custom: {
    50: '#6e7db7',
    500: '#1f4c98',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c98;
$custom-light: #6e7db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c98",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 152
  },
  "hsl": {
    "h": 217.686,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43025,
    "c": 0.1342,
    "h": 260.3
  },
  "luminance": 0.07727
}

Semantic roles & 50–950 ramp

primary
#1F4C98
secondary
#C09753
accent
#AA3FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4C98

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

Preview Lab → · Contrast checker → · Palette generator →

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