#1F4C9F#1F4C9F

#1F4C9F is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.6% C 0.144 H 261.3°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#1F4C9F
RGBrgb(31, 76, 159)
HSLhsl(219, 67%, 37%)
HSVhsv(219, 81%, 62%)
CMYKcmyk(80.5%, 52.2%, 0%, 37.6%)
CIE-LABlab(33.90, 16.16, -49.43)
CIE-LCHlch(33.90, 52.00, 288.11°)
OKLaboklab(43.57% -0.0217 -0.1423)
OKLCHoklch(43.57% 0.144 261.3)
XYZxyz(9.4053, 7.9623, 33.8353)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C9F #9F721F
analogous
#1F8C9F #1F4C9F #321F9F
triadic
#1F4C9F #9F1F4C #4C9F1F
tetradic
#1F4C9F #9F1F8C #9F721F #1F9F32
square
#1F4C9F #9F1F8C #9F721F #1F9F32
split-complementary
#1F4C9F #9F321F #8C9F1F
monochromatic
#0B1B39 #15346C #1F4C9F #2964D2 #5A88DF

Accessibility & contrast

On white

8.10
#1F4C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C9F
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C9F#FFFFFF#000000##FFFFFF
##1F4C9F1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1456A2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4c9f;
/* rgb */ color: rgb(31, 76, 159);
/* oklch */ color: oklch(43.6% 0.144 261.3);
Tailwind
colors: {
  custom: {
    50: '#707dbc',
    500: '#1f4c9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c9f;
$custom-light: #707dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c9f",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 159
  },
  "hsl": {
    "h": 218.906,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43565,
    "c": 0.144,
    "h": 261.3
  },
  "luminance": 0.07963
}

Semantic roles & 50–950 ramp

primary
#1F4C9F
secondary
#C39D57
accent
#AE3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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