#1F4692#1F4692

#1F4692 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.2% C 0.133 H 262.0°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#1F4692
RGBrgb(31, 70, 146)
HSLhsl(220, 65%, 35%)
HSVhsv(220, 79%, 57%)
CMYKcmyk(78.8%, 52.1%, 0%, 42.7%)
CIE-LABlab(31.22, 15.05, -45.88)
CIE-LCHlch(31.22, 48.28, 288.16°)
OKLaboklab(41.22% -0.0187 -0.132)
OKLCHoklch(41.22% 0.133 262)
XYZxyz(7.9417, 6.7460, 28.0721)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4692 #926B1F
analogous
#1F8092 #1F4692 #311F92
triadic
#1F4692 #921F46 #46921F
tetradic
#1F4692 #921F80 #926B1F #1F9231
square
#1F4692 #921F80 #926B1F #1F9231
split-complementary
#1F4692 #92311F #80921F
monochromatic
#0A162D #142E60 #1F4692 #2A5EC4 #5180DA

Accessibility & contrast

On white

8.94
#1F4692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#1F4692 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4692
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4692#FFFFFF#000000##FFFFFF
##1F46921.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154F95
Deuteranopia (green-blind)
#004490
Tritanopia (blue-blind)
#005865
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4692;
/* rgb */ color: rgb(31, 70, 146);
/* oklch */ color: oklch(41.2% 0.133 262.0);
Tailwind
colors: {
  custom: {
    50: '#6d78b2',
    500: '#1f4692',
    950: '#000000',
  },
}
SCSS
$custom: #1f4692;
$custom-light: #6d78b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4692",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 146
  },
  "hsl": {
    "h": 219.652,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.41218,
    "c": 0.13333,
    "h": 262
  },
  "luminance": 0.06747
}

Semantic roles & 50–950 ramp

primary
#1F4692
secondary
#BD9850
accent
#AF40E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4692

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

Preview Lab → · Contrast checker → · Palette generator →

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