#1F4D98#1F4D98

#1F4D98 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.133 H 259.8°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#1F4D98
RGBrgb(31, 77, 152)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 80%, 60%)
CMYKcmyk(79.6%, 49.3%, 0%, 40.4%)
CIE-LABlab(33.70, 12.69, -45.53)
CIE-LCHlch(33.70, 47.26, 285.58°)
OKLaboklab(43.25% -0.0235 -0.1309)
OKLCHoklch(43.25% 0.133 259.8)
XYZxyz(8.8844, 7.8650, 30.7495)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D98 #986A1F
analogous
#1F8998 #1F4D98 #2D1F98
triadic
#1F4D98 #981F4D #4D981F
tetradic
#1F4D98 #981F89 #986A1F #1F982D
square
#1F4D98 #981F89 #986A1F #1F982D
split-complementary
#1F4D98 #982D1F #89981F
monochromatic
#0A1932 #153365 #1F4D98 #2967CB #5588DC

Accessibility & contrast

On white

8.16
#1F4D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D98
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D98#FFFFFF#000000##FFFFFF
##1F4D981.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22559B
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4d98;
/* rgb */ color: rgb(31, 77, 152);
/* oklch */ color: oklch(43.3% 0.133 259.8);
Tailwind
colors: {
  custom: {
    50: '#6e7eb7',
    500: '#1f4d98',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d98;
$custom-light: #6e7eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d98",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 217.19,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43251,
    "c": 0.13296,
    "h": 259.8
  },
  "luminance": 0.07866
}

Semantic roles & 50–950 ramp

primary
#1F4D98
secondary
#C09653
accent
#A83FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D98

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

Preview Lab → · Contrast checker → · Palette generator →

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