#1F4B97#1F4B97

#1F4B97 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 42.7% C 0.134 H 260.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#1F4B97
RGBrgb(31, 75, 151)
HSLhsl(218, 66%, 36%)
HSVhsv(218, 79%, 59%)
CMYKcmyk(79.5%, 50.3%, 0%, 40.8%)
CIE-LABlab(33.04, 13.64, -45.98)
CIE-LCHlch(33.04, 47.96, 286.53°)
OKLaboklab(42.72% -0.022 -0.1322)
OKLCHoklch(42.72% 0.134 260.5)
XYZxyz(8.6650, 7.5568, 30.2741)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4B97 #976B1F
analogous
#1F8797 #1F4B97 #2F1F97
triadic
#1F4B97 #971F4B #4B971F
tetradic
#1F4B97 #971F87 #976B1F #1F972F
square
#1F4B97 #971F87 #976B1F #1F972F
split-complementary
#1F4B97 #972F1F #87971F
monochromatic
#0A1931 #153264 #1F4B97 #2964CA #5486DC

Accessibility & contrast

On white

8.36
#1F4B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#1F4B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4B97
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4B97#FFFFFF#000000##FFFFFF
##1F4B971.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E549A
Deuteranopia (green-blind)
#004995
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4b97;
/* rgb */ color: rgb(31, 75, 151);
/* oklch */ color: oklch(42.7% 0.134 260.5);
Tailwind
colors: {
  custom: {
    50: '#6e7cb6',
    500: '#1f4b97',
    950: '#000000',
  },
}
SCSS
$custom: #1f4b97;
$custom-light: #6e7cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4b97",
  "rgb": {
    "r": 31,
    "g": 75,
    "b": 151
  },
  "hsl": {
    "h": 218,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42724,
    "c": 0.13405,
    "h": 260.5
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#1F4B97
secondary
#BF9752
accent
#AB3FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4B97

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

Preview Lab → · Contrast checker → · Palette generator →

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