#1F4E98#1F4E98

#1F4E98 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.5% C 0.132 H 259.3°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#1F4E98
RGBrgb(31, 78, 152)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 80%, 60%)
CMYKcmyk(79.6%, 48.7%, 0%, 40.4%)
CIE-LABlab(34.00, 12.02, -45.05)
CIE-LCHlch(34.00, 46.63, 284.94°)
OKLaboklab(43.48% -0.0243 -0.1294)
OKLCHoklch(43.48% 0.132 259.3)
XYZxyz(8.9549, 8.0060, 30.7730)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E98 #98691F
analogous
#1F8A98 #1F4E98 #2C1F98
triadic
#1F4E98 #981F4E #4E981F
tetradic
#1F4E98 #981F8A #98691F #1F982C
square
#1F4E98 #981F8A #98691F #1F982C
split-complementary
#1F4E98 #982C1F #8A981F
monochromatic
#0A1A32 #153465 #1F4E98 #2968CB #558ADC

Accessibility & contrast

On white

8.07
#1F4E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#1F4E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E98
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E98#FFFFFF#000000##FFFFFF
##1F4E981.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24569B
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4e98;
/* rgb */ color: rgb(31, 78, 152);
/* oklch */ color: oklch(43.5% 0.132 259.3);
Tailwind
colors: {
  custom: {
    50: '#6e7fb7',
    500: '#1f4e98',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e98;
$custom-light: #6e7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e98",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 152
  },
  "hsl": {
    "h": 216.694,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43478,
    "c": 0.13171,
    "h": 259.3
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#1F4E98
secondary
#C09653
accent
#A73FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E98

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

Preview Lab → · Contrast checker → · Palette generator →

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