#1F4197#1F4197

#1F4197 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.147 H 264.4°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#1F4197
RGBrgb(31, 65, 151)
HSLhsl(223, 66%, 36%)
HSVhsv(223, 79%, 59%)
CMYKcmyk(79.5%, 57%, 0%, 40.8%)
CIE-LABlab(30.17, 20.47, -50.63)
CIE-LCHlch(30.17, 54.62, 292.01°)
OKLaboklab(40.54% -0.0143 -0.1461)
OKLCHoklch(40.54% 0.147 264.4)
XYZxyz(8.0393, 6.3053, 30.0655)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4197 #97751F
analogous
#1F7D97 #1F4197 #391F97
triadic
#1F4197 #971F41 #41971F
tetradic
#1F4197 #971F7D #97751F #1F9739
square
#1F4197 #971F7D #97751F #1F9739
split-complementary
#1F4197 #97391F #7D971F
monochromatic
#0A1531 #152B64 #1F4197 #2957CA #547BDC

Accessibility & contrast

On white

9.29
#1F4197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F4197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4197
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4197#FFFFFF#000000##FFFFFF
##1F41971.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4197;
/* rgb */ color: rgb(31, 65, 151);
/* oklch */ color: oklch(40.5% 0.147 264.4);
Tailwind
colors: {
  custom: {
    50: '#6f75b6',
    500: '#1f4197',
    950: '#000000',
  },
}
SCSS
$custom: #1f4197;
$custom-light: #6f75b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4197",
  "rgb": {
    "r": 31,
    "g": 65,
    "b": 151
  },
  "hsl": {
    "h": 223,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40541,
    "c": 0.14681,
    "h": 264.4
  },
  "luminance": 0.06306
}

Semantic roles & 50–950 ramp

primary
#1F4197
secondary
#BFA152
accent
#B93FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4197

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

Preview Lab → · Contrast checker → · Palette generator →

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