#1F4C92#1F4C92

#1F4C92 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.6% C 0.126 H 259.1°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#1F4C92
RGBrgb(31, 76, 146)
HSLhsl(217, 65%, 35%)
HSVhsv(217, 79%, 57%)
CMYKcmyk(78.8%, 47.9%, 0%, 42.7%)
CIE-LABlab(32.99, 10.97, -43.02)
CIE-LCHlch(32.99, 44.39, 284.30°)
OKLaboklab(42.58% -0.0237 -0.1235)
OKLCHoklch(42.58% 0.126 259.1)
XYZxyz(8.3359, 7.5345, 28.2035)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C92 #92651F
analogous
#1F8692 #1F4C92 #2C1F92
triadic
#1F4C92 #921F4C #4C921F
tetradic
#1F4C92 #921F86 #92651F #1F922C
square
#1F4C92 #921F86 #92651F #1F922C
split-complementary
#1F4C92 #922C1F #86921F
monochromatic
#0A172D #143260 #1F4C92 #2A66C4 #5187DA

Accessibility & contrast

On white

8.38
#1F4C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4C92
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C92#FFFFFF#000000##FFFFFF
##1F4C921.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265395
Deuteranopia (green-blind)
#064991
Tritanopia (blue-blind)
#005D68
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #1f4c92;
/* rgb */ color: rgb(31, 76, 146);
/* oklch */ color: oklch(42.6% 0.126 259.1);
Tailwind
colors: {
  custom: {
    50: '#6d7db2',
    500: '#1f4c92',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c92;
$custom-light: #6d7db2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c92",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 146
  },
  "hsl": {
    "h": 216.522,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.42577,
    "c": 0.12574,
    "h": 259.1
  },
  "luminance": 0.07536
}

Semantic roles & 50–950 ramp

primary
#1F4C92
secondary
#BD9250
accent
#A640E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4C92

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

Preview Lab → · Contrast checker → · Palette generator →

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