#1F4E9D#1F4E9D

#1F4E9D is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.139 H 260.2°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#1F4E9D
RGBrgb(31, 78, 157)
HSLhsl(218, 67%, 37%)
HSVhsv(218, 80%, 62%)
CMYKcmyk(80.3%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.34, 14.02, -47.51)
CIE-LCHlch(34.34, 49.54, 286.43°)
OKLaboklab(43.85% -0.0236 -0.1367)
OKLCHoklch(43.85% 0.139 260.2)
XYZxyz(9.3731, 8.1733, 32.9754)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E9D #9D6E1F
analogous
#1F8D9D #1F4E9D #2F1F9D
triadic
#1F4E9D #9D1F4E #4E9D1F
tetradic
#1F4E9D #9D1F8D #9D6E1F #1F9D2F
square
#1F4E9D #9D1F8D #9D6E1F #1F9D2F
split-complementary
#1F4E9D #9D2F1F #8D9D1F
monochromatic
#0B1B37 #15356A #1F4E9D #2967D0 #588ADE

Accessibility & contrast

On white

7.97
#1F4E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#1F4E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E9D
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E9D#FFFFFF#000000##FFFFFF
##1F4E9D1.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E57A0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4e9d;
/* rgb */ color: rgb(31, 78, 157);
/* oklch */ color: oklch(43.9% 0.139 260.2);
Tailwind
colors: {
  custom: {
    50: '#6f7eba',
    500: '#1f4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e9d;
$custom-light: #6f7eba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e9d",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 217.619,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.43853,
    "c": 0.1387,
    "h": 260.2
  },
  "luminance": 0.08174
}

Semantic roles & 50–950 ramp

primary
#1F4E9D
secondary
#C29A56
accent
#AA3EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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