#1F4796#1F4796

#1F4796 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.138 H 262.1°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#1F4796
RGBrgb(31, 71, 150)
HSLhsl(220, 66%, 35%)
HSVhsv(220, 79%, 59%)
CMYKcmyk(79.3%, 52.7%, 0%, 41.2%)
CIE-LABlab(31.80, 15.97, -47.37)
CIE-LCHlch(31.80, 49.99, 288.63°)
OKLaboklab(41.76% -0.019 -0.1364)
OKLCHoklch(41.76% 0.138 262.1)
XYZxyz(8.3214, 6.9988, 29.7606)
Luminance0.0700 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4796 #966E1F
analogous
#1F8296 #1F4796 #321F96
triadic
#1F4796 #961F47 #47961F
tetradic
#1F4796 #961F82 #966E1F #1F9632
square
#1F4796 #961F82 #966E1F #1F9632
split-complementary
#1F4796 #96321F #82961F
monochromatic
#0A1731 #152F63 #1F4796 #295FC9 #5481DC

Accessibility & contrast

On white

8.75
#1F4796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1F4796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4796
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4796#FFFFFF#000000##FFFFFF
##1F47961.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125199
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#005A67
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4796;
/* rgb */ color: rgb(31, 71, 150);
/* oklch */ color: oklch(41.8% 0.138 262.1);
Tailwind
colors: {
  custom: {
    50: '#6e79b5',
    500: '#1f4796',
    950: '#000000',
  },
}
SCSS
$custom: #1f4796;
$custom-light: #6e79b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4796",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 150
  },
  "hsl": {
    "h": 219.832,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41755,
    "c": 0.13772,
    "h": 262.1
  },
  "luminance": 0.07
}

Semantic roles & 50–950 ramp

primary
#1F4796
secondary
#BF9A52
accent
#B03FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4796

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

Preview Lab → · Contrast checker → · Palette generator →

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