#1F4596#1F4596

#1F4596 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.3% C 0.140 H 262.9°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#1F4596
RGBrgb(31, 69, 150)
HSLhsl(221, 66%, 35%)
HSVhsv(221, 79%, 59%)
CMYKcmyk(79.3%, 54%, 0%, 41.2%)
CIE-LABlab(31.23, 17.33, -48.31)
CIE-LCHlch(31.23, 51.32, 289.74°)
OKLaboklab(41.32% -0.0174 -0.1392)
OKLCHoklch(41.32% 0.14 262.9)
XYZxyz(8.1962, 6.7486, 29.7189)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4596 #96701F
analogous
#1F8196 #1F4596 #341F96
triadic
#1F4596 #961F45 #45961F
tetradic
#1F4596 #961F81 #96701F #1F9634
square
#1F4596 #961F81 #96701F #1F9634
split-complementary
#1F4596 #96341F #81961F
monochromatic
#0A1631 #152E63 #1F4596 #295CC9 #547FDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F4596#FFFFFF#000000##FFFFFF
##1F45961.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)
#074F99
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#005966
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4596;
/* rgb */ color: rgb(31, 69, 150);
/* oklch */ color: oklch(41.3% 0.140 262.9);
Tailwind
colors: {
  custom: {
    50: '#6e78b5',
    500: '#1f4596',
    950: '#000000',
  },
}
SCSS
$custom: #1f4596;
$custom-light: #6e78b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4596",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 150
  },
  "hsl": {
    "h": 220.84,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41317,
    "c": 0.14028,
    "h": 262.9
  },
  "luminance": 0.0675
}

Semantic roles & 50–950 ramp

primary
#1F4596
secondary
#BF9C52
accent
#B33FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F4596

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

Preview Lab → · Contrast checker → · Palette generator →

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