#1F4E91#1F4E91

#1F4E91 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.0% C 0.122 H 257.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#1F4E91
RGBrgb(31, 78, 145)
HSLhsl(215, 65%, 35%)
HSVhsv(215, 79%, 57%)
CMYKcmyk(78.6%, 46.2%, 0%, 43.1%)
CIE-LABlab(33.53, 9.22, -41.55)
CIE-LCHlch(33.53, 42.56, 282.51°)
OKLaboklab(42.97% -0.0256 -0.1191)
OKLCHoklch(42.97% 0.122 257.9)
XYZxyz(8.3984, 7.7834, 27.8423)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E91 #91621F
analogous
#1F8791 #1F4E91 #291F91
triadic
#1F4E91 #911F4E #4E911F
tetradic
#1F4E91 #911F87 #91621F #1F9129
square
#1F4E91 #911F87 #91621F #1F9129
split-complementary
#1F4E91 #91291F #87911F
monochromatic
#09182C #14335F #1F4E91 #2A69C3 #5189DA

Accessibility & contrast

On white

8.21
#1F4E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F4E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E91
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E91#FFFFFF#000000##FFFFFF
##1F4E911.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5494
Deuteranopia (green-blind)
#124A90
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4e91;
/* rgb */ color: rgb(31, 78, 145);
/* oklch */ color: oklch(43.0% 0.122 257.9);
Tailwind
colors: {
  custom: {
    50: '#6c7fb2',
    500: '#1f4e91',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e91;
$custom-light: #6c7fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e91",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 145
  },
  "hsl": {
    "h": 215.263,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42967,
    "c": 0.12186,
    "h": 257.9
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#1F4E91
secondary
#BD904F
accent
#A340E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E91

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

Preview Lab → · Contrast checker → · Palette generator →

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