#1F4497#1F4497

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

Color values

HEX#1F4497
RGBrgb(31, 68, 151)
HSLhsl(222, 66%, 36%)
HSVhsv(222, 79%, 59%)
CMYKcmyk(79.5%, 55%, 0%, 40.8%)
CIE-LABlab(31.02, 18.42, -49.26)
CIE-LCHlch(31.02, 52.59, 290.50°)
OKLaboklab(41.18% -0.0165 -0.142)
OKLCHoklch(41.18% 0.143 263.4)
XYZxyz(8.2161, 6.6590, 30.1244)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4497 #97721F
analogous
#1F8097 #1F4497 #361F97
triadic
#1F4497 #971F44 #44971F
tetradic
#1F4497 #971F80 #97721F #1F9736
square
#1F4497 #971F80 #97721F #1F9736
split-complementary
#1F4497 #97361F #80971F
monochromatic
#0A1631 #152D64 #1F4497 #295BCA #547EDC

Accessibility & contrast

On white

9.01
#1F4497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1F4497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4497
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4497#FFFFFF#000000##FFFFFF
##1F44971.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#005866
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4497;
/* rgb */ color: rgb(31, 68, 151);
/* oklch */ color: oklch(41.2% 0.143 263.4);
Tailwind
colors: {
  custom: {
    50: '#6e77b6',
    500: '#1f4497',
    950: '#000000',
  },
}
SCSS
$custom: #1f4497;
$custom-light: #6e77b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4497",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 151
  },
  "hsl": {
    "h": 221.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41181,
    "c": 0.14297,
    "h": 263.4
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#1F4497
secondary
#BF9E52
accent
#B43FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4497

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

Preview Lab → · Contrast checker → · Palette generator →

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