#1F4E9A#1F4E9A

#1F4E9A is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.135 H 259.7°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#1F4E9A
RGBrgb(31, 78, 154)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 80%, 60%)
CMYKcmyk(79.9%, 49.4%, 0%, 39.6%)
CIE-LABlab(34.13, 12.82, -46.04)
CIE-LCHlch(34.13, 47.79, 285.56°)
OKLaboklab(43.63% -0.024 -0.1323)
OKLCHoklch(43.63% 0.135 259.7)
XYZxyz(9.1201, 8.0721, 31.6430)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E9A #9A6B1F
analogous
#1F8C9A #1F4E9A #2E1F9A
triadic
#1F4E9A #9A1F4E #4E9A1F
tetradic
#1F4E9A #9A1F8C #9A6B1F #1F9A2E
square
#1F4E9A #9A1F8C #9A6B1F #1F9A2E
split-complementary
#1F4E9A #9A2E1F #8C9A1F
monochromatic
#0A1A34 #153467 #1F4E9A #2968CD #568ADD

Accessibility & contrast

On white

8.03
#1F4E9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4E9A
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E9A#FFFFFF#000000##FFFFFF
##1F4E9A1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22569D
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#00606C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4e9a;
/* rgb */ color: rgb(31, 78, 154);
/* oklch */ color: oklch(43.6% 0.135 259.7);
Tailwind
colors: {
  custom: {
    50: '#6f7fb8',
    500: '#1f4e9a',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e9a;
$custom-light: #6f7fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e9a",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 154
  },
  "hsl": {
    "h": 217.073,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43627,
    "c": 0.13451,
    "h": 259.7
  },
  "luminance": 0.08073
}

Semantic roles & 50–950 ramp

primary
#1F4E9A
secondary
#C19754
accent
#A83EE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E9A

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

Preview Lab → · Contrast checker → · Palette generator →

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