#1F4D93#1F4D93

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

Color values

HEX#1F4D93
RGBrgb(31, 77, 147)
HSLhsl(216, 65%, 35%)
HSVhsv(216, 79%, 58%)
CMYKcmyk(78.9%, 47.6%, 0%, 42.4%)
CIE-LABlab(33.36, 10.69, -43.04)
CIE-LCHlch(33.36, 44.35, 283.95°)
OKLaboklab(42.88% -0.0244 -0.1235)
OKLCHoklch(42.88% 0.126 258.8)
XYZxyz(8.4835, 7.7047, 28.6381)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D93 #93651F
analogous
#1F8793 #1F4D93 #2B1F93
triadic
#1F4D93 #931F4D #4D931F
tetradic
#1F4D93 #931F87 #93651F #1F932B
square
#1F4D93 #931F87 #93651F #1F932B
split-complementary
#1F4D93 #932B1F #87931F
monochromatic
#0A182E #143360 #1F4D93 #2A67C6 #5288DA

Accessibility & contrast

On white

8.26
#1F4D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4D93
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D93#FFFFFF#000000##FFFFFF
##1F4D931.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275496
Deuteranopia (green-blind)
#084A92
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4d93;
/* rgb */ color: rgb(31, 77, 147);
/* oklch */ color: oklch(42.9% 0.126 258.8);
Tailwind
colors: {
  custom: {
    50: '#6d7eb3',
    500: '#1f4d93',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d93;
$custom-light: #6d7eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d93",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 147
  },
  "hsl": {
    "h": 216.207,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4288,
    "c": 0.12591,
    "h": 258.8
  },
  "luminance": 0.07706
}

Semantic roles & 50–950 ramp

primary
#1F4D93
secondary
#BE9250
accent
#A540E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D93

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

Preview Lab → · Contrast checker → · Palette generator →

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