#1F4E94#1F4E94

#1F4E94 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.2% C 0.126 H 258.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#1F4E94
RGBrgb(31, 78, 148)
HSLhsl(216, 65%, 35%)
HSVhsv(216, 79%, 58%)
CMYKcmyk(79.1%, 47.3%, 0%, 42%)
CIE-LABlab(33.73, 10.42, -43.06)
CIE-LCHlch(33.73, 44.30, 283.60°)
OKLaboklab(43.18% -0.025 -0.1236)
OKLCHoklch(43.18% 0.126 258.5)
XYZxyz(8.6328, 7.8772, 29.0767)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E94 #94651F
analogous
#1F8994 #1F4E94 #2A1F94
triadic
#1F4E94 #941F4E #4E941F
tetradic
#1F4E94 #941F89 #94651F #1F942A
square
#1F4E94 #941F89 #94651F #1F942A
split-complementary
#1F4E94 #942A1F #89941F
monochromatic
#0A192F #143361 #1F4E94 #2A69C7 #5389DB

Accessibility & contrast

On white

8.15
#1F4E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F4E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E94
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E94#FFFFFF#000000##FFFFFF
##1F4E941.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285597
Deuteranopia (green-blind)
#0A4A93
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4e94;
/* rgb */ color: rgb(31, 78, 148);
/* oklch */ color: oklch(43.2% 0.126 258.5);
Tailwind
colors: {
  custom: {
    50: '#6d7fb4',
    500: '#1f4e94',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e94;
$custom-light: #6d7fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e94",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 148
  },
  "hsl": {
    "h": 215.897,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.43184,
    "c": 0.12608,
    "h": 258.5
  },
  "luminance": 0.07878
}

Semantic roles & 50–950 ramp

primary
#1F4E94
secondary
#BE9251
accent
#A43FE8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E94

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

Preview Lab → · Contrast checker → · Palette generator →

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