#1F4F9B#1F4F9B

#1F4F9B is a dark, vivid blue. Relative luminance 0.083; OKLCH L 43.9% C 0.135 H 259.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#1F4F9B
RGBrgb(31, 79, 155)
HSLhsl(217, 67%, 36%)
HSVhsv(217, 80%, 61%)
CMYKcmyk(80%, 49%, 0%, 39.2%)
CIE-LABlab(34.50, 12.54, -46.06)
CIE-LCHlch(34.50, 47.74, 285.23°)
OKLaboklab(43.93% -0.0247 -0.1324)
OKLCHoklch(43.93% 0.135 259.4)
XYZxyz(9.2753, 8.2487, 32.1073)
Luminance0.0825 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F9B #9B6B1F
analogous
#1F8D9B #1F4F9B #2D1F9B
triadic
#1F4F9B #9B1F4F #4F9B1F
tetradic
#1F4F9B #9B1F8D #9B6B1F #1F9B2D
square
#1F4F9B #9B1F8D #9B6B1F #1F9B2D
split-complementary
#1F4F9B #9B2D1F #8D9B1F
monochromatic
#0B1B35 #153568 #1F4F9B #2969CE #578BDD

Accessibility & contrast

On white

7.92
#1F4F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#1F4F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F9B
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F9B#FFFFFF#000000##FFFFFF
##1F4F9B1.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24579E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4f9b;
/* rgb */ color: rgb(31, 79, 155);
/* oklch */ color: oklch(43.9% 0.135 259.4);
Tailwind
colors: {
  custom: {
    50: '#6f7fb9',
    500: '#1f4f9b',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f9b;
$custom-light: #6f7fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f9b",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 155
  },
  "hsl": {
    "h": 216.774,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43928,
    "c": 0.13466,
    "h": 259.4
  },
  "luminance": 0.0825
}

Semantic roles & 50–950 ramp

primary
#1F4F9B
secondary
#C19755
accent
#A73EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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