#1F4C97#1F4C97

#1F4C97 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 42.9% C 0.133 H 260.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#1F4C97
RGBrgb(31, 76, 151)
HSLhsl(218, 66%, 36%)
HSVhsv(218, 79%, 59%)
CMYKcmyk(79.5%, 49.7%, 0%, 40.8%)
CIE-LABlab(33.34, 12.97, -45.51)
CIE-LCHlch(33.34, 47.32, 285.91°)
OKLaboklab(42.95% -0.0228 -0.1308)
OKLCHoklch(42.95% 0.133 260.1)
XYZxyz(8.7334, 7.6935, 30.2969)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C97 #976A1F
analogous
#1F8897 #1F4C97 #2E1F97
triadic
#1F4C97 #971F4C #4C971F
tetradic
#1F4C97 #971F88 #976A1F #1F972E
square
#1F4C97 #971F88 #976A1F #1F972E
split-complementary
#1F4C97 #972E1F #88971F
monochromatic
#0A1931 #153264 #1F4C97 #2966CA #5487DC

Accessibility & contrast

On white

8.27
#1F4C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#1F4C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C97
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C97#FFFFFF#000000##FFFFFF
##1F4C971.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20549A
Deuteranopia (green-blind)
#004996
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4c97;
/* rgb */ color: rgb(31, 76, 151);
/* oklch */ color: oklch(42.9% 0.133 260.1);
Tailwind
colors: {
  custom: {
    50: '#6e7db6',
    500: '#1f4c97',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c97;
$custom-light: #6e7db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c97",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 151
  },
  "hsl": {
    "h": 217.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.42949,
    "c": 0.1328,
    "h": 260.1
  },
  "luminance": 0.07695
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4C97

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

Preview Lab → · Contrast checker → · Palette generator →

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