#1F4D9A#1F4D9A

#1F4D9A is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.136 H 260.2°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4D9A
RGBrgb(31, 77, 154)
HSLhsl(218, 66%, 36%)
HSVhsv(218, 80%, 60%)
CMYKcmyk(79.9%, 50%, 0%, 39.6%)
CIE-LABlab(33.84, 13.49, -46.51)
CIE-LCHlch(33.84, 48.43, 286.18°)
OKLaboklab(43.4% -0.0232 -0.1338)
OKLCHoklch(43.4% 0.136 260.2)
XYZxyz(9.0496, 7.9311, 31.6195)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D9A #9A6C1F
analogous
#1F8B9A #1F4D9A #2F1F9A
triadic
#1F4D9A #9A1F4D #4D9A1F
tetradic
#1F4D9A #9A1F8B #9A6C1F #1F9A2F
square
#1F4D9A #9A1F8B #9A6C1F #1F9A2F
split-complementary
#1F4D9A #9A2F1F #8B9A1F
monochromatic
#0A1A34 #153467 #1F4D9A #2966CD #5689DD

Accessibility & contrast

On white

8.12
#1F4D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D9A
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D9A#FFFFFF#000000##FFFFFF
##1F4D9A1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F569D
Deuteranopia (green-blind)
#004A98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4d9a;
/* rgb */ color: rgb(31, 77, 154);
/* oklch */ color: oklch(43.4% 0.136 260.2);
Tailwind
colors: {
  custom: {
    50: '#6f7eb8',
    500: '#1f4d9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d9a;
$custom-light: #6f7eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d9a",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 154
  },
  "hsl": {
    "h": 217.561,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43402,
    "c": 0.13576,
    "h": 260.2
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#1F4D9A
secondary
#C19854
accent
#A93EE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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