#1F4794#1F4794

#1F4794 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.6% C 0.135 H 261.8°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#1F4794
RGBrgb(31, 71, 148)
HSLhsl(219, 65%, 35%)
HSVhsv(219, 79%, 58%)
CMYKcmyk(79.1%, 52%, 0%, 42%)
CIE-LABlab(31.66, 15.16, -46.39)
CIE-LCHlch(31.66, 48.81, 288.10°)
OKLaboklab(41.6% -0.0192 -0.1335)
OKLCHoklch(41.6% 0.135 261.8)
XYZxyz(8.1617, 6.9350, 28.9197)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4794 #946C1F
analogous
#1F8294 #1F4794 #311F94
triadic
#1F4794 #941F47 #47941F
tetradic
#1F4794 #941F82 #946C1F #1F9431
square
#1F4794 #941F82 #946C1F #1F9431
split-complementary
#1F4794 #94311F #82941F
monochromatic
#0A162F #142F61 #1F4794 #2A5FC7 #5381DB

Accessibility & contrast

On white

8.80
#1F4794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1F4794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4794
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4794#FFFFFF#000000##FFFFFF
##1F47941.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155097
Deuteranopia (green-blind)
#004592
Tritanopia (blue-blind)
#005A66
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4794;
/* rgb */ color: rgb(31, 71, 148);
/* oklch */ color: oklch(41.6% 0.135 261.8);
Tailwind
colors: {
  custom: {
    50: '#6d79b4',
    500: '#1f4794',
    950: '#000000',
  },
}
SCSS
$custom: #1f4794;
$custom-light: #6d79b4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4794",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 148
  },
  "hsl": {
    "h": 219.487,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41598,
    "c": 0.13489,
    "h": 261.8
  },
  "luminance": 0.06936
}

Semantic roles & 50–950 ramp

primary
#1F4794
secondary
#BE9951
accent
#AF3FE8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4794

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

Preview Lab → · Contrast checker → · Palette generator →

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