#1F4D9F#1F4D9F

#1F4D9F is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.8% C 0.143 H 260.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#1F4D9F
RGBrgb(31, 77, 159)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 81%, 62%)
CMYKcmyk(80.5%, 51.6%, 0%, 37.6%)
CIE-LABlab(34.19, 15.49, -48.96)
CIE-LCHlch(34.19, 51.35, 287.55°)
OKLaboklab(43.79% -0.0225 -0.141)
OKLCHoklch(43.79% 0.143 260.9)
XYZxyz(9.4747, 8.1011, 33.8585)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D9F #9F711F
analogous
#1F8D9F #1F4D9F #311F9F
triadic
#1F4D9F #9F1F4D #4D9F1F
tetradic
#1F4D9F #9F1F8D #9F711F #1F9F31
square
#1F4D9F #9F1F8D #9F711F #1F9F31
split-complementary
#1F4D9F #9F311F #8D9F1F
monochromatic
#0B1B39 #15346C #1F4D9F #2966D2 #5A89DF

Accessibility & contrast

On white

8.01
#1F4D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F4D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D9F
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D9F#FFFFFF#000000##FFFFFF
##1F4D9F1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1857A2
Deuteranopia (green-blind)
#004B9D
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4d9f;
/* rgb */ color: rgb(31, 77, 159);
/* oklch */ color: oklch(43.8% 0.143 260.9);
Tailwind
colors: {
  custom: {
    50: '#707ebc',
    500: '#1f4d9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d9f;
$custom-light: #707ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d9f",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 159
  },
  "hsl": {
    "h": 218.438,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43785,
    "c": 0.14275,
    "h": 260.9
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#1F4D9F
secondary
#C39C57
accent
#AC3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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