#1F4697#1F4697

#1F4697 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.140 H 262.6°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#1F4697
RGBrgb(31, 70, 151)
HSLhsl(221, 66%, 36%)
HSVhsv(221, 79%, 59%)
CMYKcmyk(79.5%, 53.6%, 0%, 40.8%)
CIE-LABlab(31.59, 17.05, -48.33)
CIE-LCHlch(31.59, 51.25, 289.43°)
OKLaboklab(41.62% -0.0181 -0.1392)
OKLCHoklch(41.62% 0.14 262.6)
XYZxyz(8.3391, 6.9050, 30.1655)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4697 #97701F
analogous
#1F8297 #1F4697 #341F97
triadic
#1F4697 #971F46 #46971F
tetradic
#1F4697 #971F82 #97701F #1F9734
square
#1F4697 #971F82 #97701F #1F9734
split-complementary
#1F4697 #97341F #82971F
monochromatic
#0A1731 #152E64 #1F4697 #295ECA #5480DC

Accessibility & contrast

On white

8.82
#1F4697 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#1F4697 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4697
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4697#FFFFFF#000000##FFFFFF
##1F46971.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A509A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4697;
/* rgb */ color: rgb(31, 70, 151);
/* oklch */ color: oklch(41.6% 0.140 262.6);
Tailwind
colors: {
  custom: {
    50: '#6e78b6',
    500: '#1f4697',
    950: '#000000',
  },
}
SCSS
$custom: #1f4697;
$custom-light: #6e78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4697",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 151
  },
  "hsl": {
    "h": 220.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41616,
    "c": 0.14041,
    "h": 262.6
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#1F4697
secondary
#BF9C52
accent
#B23FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4697

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

Preview Lab → · Contrast checker → · Palette generator →

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