#1F4991#1F4991

#1F4991 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 41.8% C 0.128 H 260.4°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#1F4991
RGBrgb(31, 73, 145)
HSLhsl(218, 65%, 35%)
HSVhsv(218, 79%, 57%)
CMYKcmyk(78.6%, 49.7%, 0%, 43.1%)
CIE-LABlab(32.03, 12.60, -43.95)
CIE-LCHlch(32.03, 45.73, 285.99°)
OKLaboklab(41.82% -0.0213 -0.1263)
OKLCHoklch(41.82% 0.128 260.4)
XYZxyz(8.0566, 7.0998, 27.7284)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4991 #91671F
analogous
#1F8291 #1F4991 #2E1F91
triadic
#1F4991 #911F49 #49911F
tetradic
#1F4991 #911F82 #91671F #1F912E
square
#1F4991 #911F82 #91671F #1F912E
split-complementary
#1F4991 #912E1F #82911F
monochromatic
#09162C #14305F #1F4991 #2A62C3 #5183DA

Accessibility & contrast

On white

8.68
#1F4991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#1F4991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4991
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4991#FFFFFF#000000##FFFFFF
##1F49911.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205194
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4991;
/* rgb */ color: rgb(31, 73, 145);
/* oklch */ color: oklch(41.8% 0.128 260.4);
Tailwind
colors: {
  custom: {
    50: '#6d7bb2',
    500: '#1f4991',
    950: '#000000',
  },
}
SCSS
$custom: #1f4991;
$custom-light: #6d7bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4991",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 145
  },
  "hsl": {
    "h": 217.895,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41816,
    "c": 0.12809,
    "h": 260.4
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#1F4991
secondary
#BD944F
accent
#AA40E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4991

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

Preview Lab → · Contrast checker → · Palette generator →

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