#1F4F9F#1F4F9F

#1F4F9F is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.2% C 0.140 H 260.1°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#1F4F9F
RGBrgb(31, 79, 159)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 81%, 62%)
CMYKcmyk(80.5%, 50.3%, 0%, 37.6%)
CIE-LABlab(34.77, 14.14, -48.02)
CIE-LCHlch(34.77, 50.06, 286.41°)
OKLaboklab(44.23% -0.0241 -0.1382)
OKLCHoklch(44.23% 0.14 260.1)
XYZxyz(9.6168, 8.3853, 33.9059)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F9F #9F6F1F
analogous
#1F8F9F #1F4F9F #2F1F9F
triadic
#1F4F9F #9F1F4F #4F9F1F
tetradic
#1F4F9F #9F1F8F #9F6F1F #1F9F2F
square
#1F4F9F #9F1F8F #9F6F1F #1F9F2F
split-complementary
#1F4F9F #9F2F1F #8F9F1F
monochromatic
#0B1C39 #15366C #1F4F9F #2968D2 #5A8CDF

Accessibility & contrast

On white

7.84
#1F4F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F4F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F9F
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F9F#FFFFFF#000000##FFFFFF
##1F4F9F1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A2
Deuteranopia (green-blind)
#004C9D
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4f9f;
/* rgb */ color: rgb(31, 79, 159);
/* oklch */ color: oklch(44.2% 0.140 260.1);
Tailwind
colors: {
  custom: {
    50: '#707fbc',
    500: '#1f4f9f',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f9f;
$custom-light: #707fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f9f",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 159
  },
  "hsl": {
    "h": 217.5,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44229,
    "c": 0.14024,
    "h": 260.1
  },
  "luminance": 0.08386
}

Semantic roles & 50–950 ramp

primary
#1F4F9F
secondary
#C39A57
accent
#A93EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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