#1F4F9D#1F4F9D

#1F4F9D is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.137 H 259.8°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#1F4F9D
RGBrgb(31, 79, 157)
HSLhsl(217, 67%, 37%)
HSVhsv(217, 80%, 62%)
CMYKcmyk(80.3%, 49.7%, 0%, 38.4%)
CIE-LABlab(34.63, 13.34, -47.04)
CIE-LCHlch(34.63, 48.90, 285.83°)
OKLaboklab(44.08% -0.0244 -0.1353)
OKLCHoklch(44.08% 0.137 259.8)
XYZxyz(9.4446, 8.3165, 32.9992)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F9D #9D6D1F
analogous
#1F8E9D #1F4F9D #2E1F9D
triadic
#1F4F9D #9D1F4F #4F9D1F
tetradic
#1F4F9D #9D1F8E #9D6D1F #1F9D2E
square
#1F4F9D #9D1F8E #9D6D1F #1F9D2E
split-complementary
#1F4F9D #9D2E1F #8E9D1F
monochromatic
#0B1C37 #15356A #1F4F9D #2969D0 #588BDE

Accessibility & contrast

On white

7.88
#1F4F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#1F4F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F9D
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F9D#FFFFFF#000000##FFFFFF
##1F4F9D1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2158A0
Deuteranopia (green-blind)
#004C9B
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4f9d;
/* rgb */ color: rgb(31, 79, 157);
/* oklch */ color: oklch(44.1% 0.137 259.8);
Tailwind
colors: {
  custom: {
    50: '#6f7fba',
    500: '#1f4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f9d;
$custom-light: #6f7fba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f9d",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 217.143,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44077,
    "c": 0.13746,
    "h": 259.8
  },
  "luminance": 0.08318
}

Semantic roles & 50–950 ramp

primary
#1F4F9D
secondary
#C29956
accent
#A83EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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