#1F4E93#1F4E93

#1F4E93 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.1% C 0.125 H 258.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#1F4E93
RGBrgb(31, 78, 147)
HSLhsl(216, 65%, 35%)
HSVhsv(216, 79%, 58%)
CMYKcmyk(78.9%, 46.9%, 0%, 42.4%)
CIE-LABlab(33.66, 10.02, -42.56)
CIE-LCHlch(33.66, 43.72, 283.25°)
OKLaboklab(43.11% -0.0252 -0.1221)
OKLCHoklch(43.11% 0.125 258.3)
XYZxyz(8.5540, 7.8457, 28.6616)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E93 #93641F
analogous
#1F8893 #1F4E93 #2A1F93
triadic
#1F4E93 #931F4E #4E931F
tetradic
#1F4E93 #931F88 #93641F #1F932A
square
#1F4E93 #931F88 #93641F #1F932A
split-complementary
#1F4E93 #932A1F #88931F
monochromatic
#0A182E #143360 #1F4E93 #2A69C6 #5289DA

Accessibility & contrast

On white

8.17
#1F4E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#1F4E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E93
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E93#FFFFFF#000000##FFFFFF
##1F4E931.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295596
Deuteranopia (green-blind)
#0D4A92
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4e93;
/* rgb */ color: rgb(31, 78, 147);
/* oklch */ color: oklch(43.1% 0.125 258.3);
Tailwind
colors: {
  custom: {
    50: '#6d7fb3',
    500: '#1f4e93',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e93;
$custom-light: #6d7fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e93",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 147
  },
  "hsl": {
    "h": 215.69,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43111,
    "c": 0.12468,
    "h": 258.3
  },
  "luminance": 0.07847
}

Semantic roles & 50–950 ramp

primary
#1F4E93
secondary
#BE9150
accent
#A440E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E93

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

Preview Lab → · Contrast checker → · Palette generator →

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