#1F4D9D#1F4D9D

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

Color values

HEX#1F4D9D
RGBrgb(31, 77, 157)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 80%, 62%)
CMYKcmyk(80.3%, 51%, 0%, 38.4%)
CIE-LABlab(34.05, 14.69, -47.98)
CIE-LCHlch(34.05, 50.18, 287.02°)
OKLaboklab(43.63% -0.0228 -0.1381)
OKLCHoklch(43.63% 0.14 260.6)
XYZxyz(9.3025, 8.0323, 32.9519)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D9D #9D6F1F
analogous
#1F8C9D #1F4D9D #301F9D
triadic
#1F4D9D #9D1F4D #4D9D1F
tetradic
#1F4D9D #9D1F8C #9D6F1F #1F9D30
square
#1F4D9D #9D1F8C #9D6F1F #1F9D30
split-complementary
#1F4D9D #9D301F #8C9D1F
monochromatic
#0B1B37 #15346A #1F4D9D #2966D0 #5889DE

Accessibility & contrast

On white

8.06
#1F4D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#1F4D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D9D
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D9D#FFFFFF#000000##FFFFFF
##1F4D9D1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B56A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4d9d;
/* rgb */ color: rgb(31, 77, 157);
/* oklch */ color: oklch(43.6% 0.140 260.6);
Tailwind
colors: {
  custom: {
    50: '#6f7eba',
    500: '#1f4d9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d9d;
$custom-light: #6f7eba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d9d",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 157
  },
  "hsl": {
    "h": 218.095,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43631,
    "c": 0.13996,
    "h": 260.6
  },
  "luminance": 0.08033
}

Semantic roles & 50–950 ramp

primary
#1F4D9D
secondary
#C29A56
accent
#AB3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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