#1F4097#1F4097

#1F4097 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.148 H 264.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#1F4097
RGBrgb(31, 64, 151)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 79%, 59%)
CMYKcmyk(79.5%, 57.6%, 0%, 40.8%)
CIE-LABlab(29.89, 21.16, -51.09)
CIE-LCHlch(29.89, 55.30, 292.50°)
OKLaboklab(40.33% -0.0136 -0.1475)
OKLCHoklch(40.33% 0.148 264.7)
XYZxyz(7.9824, 6.1915, 30.0465)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4097 #97761F
analogous
#1F7C97 #1F4097 #3A1F97
triadic
#1F4097 #971F40 #40971F
tetradic
#1F4097 #971F7C #97761F #1F973A
square
#1F4097 #971F7C #97761F #1F973A
split-complementary
#1F4097 #973A1F #7C971F
monochromatic
#0A1531 #152A64 #1F4097 #2956CA #547ADC

Accessibility & contrast

On white

9.38
#1F4097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F4097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4097
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4097#FFFFFF#000000##FFFFFF
##1F40971.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005665
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4097;
/* rgb */ color: rgb(31, 64, 151);
/* oklch */ color: oklch(40.3% 0.148 264.7);
Tailwind
colors: {
  custom: {
    50: '#6f74b6',
    500: '#1f4097',
    950: '#000000',
  },
}
SCSS
$custom: #1f4097;
$custom-light: #6f74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4097",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 151
  },
  "hsl": {
    "h": 223.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40331,
    "c": 0.14808,
    "h": 264.7
  },
  "luminance": 0.06192
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4097

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

Preview Lab → · Contrast checker → · Palette generator →

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