#1F4790#1F4790

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

Color values

HEX#1F4790
RGBrgb(31, 71, 144)
HSLhsl(219, 65%, 34%)
HSVhsv(219, 78%, 56%)
CMYKcmyk(78.5%, 50.7%, 0%, 43.5%)
CIE-LABlab(31.37, 13.56, -44.41)
CIE-LCHlch(31.37, 46.43, 286.98°)
OKLaboklab(41.29% -0.0197 -0.1277)
OKLCHoklch(41.29% 0.129 261.2)
XYZxyz(7.8505, 6.8105, 27.2810)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4790 #90681F
analogous
#1F8090 #1F4790 #301F90
triadic
#1F4790 #901F47 #47901F
tetradic
#1F4790 #901F80 #90681F #1F9030
square
#1F4790 #901F80 #90681F #1F9030
split-complementary
#1F4790 #90301F #80901F
monochromatic
#09152B #142E5E #1F4790 #2A60C2 #5081D9

Accessibility & contrast

On white

8.89
#1F4790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#1F4790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4790
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4790#FFFFFF#000000##FFFFFF
##1F47901.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4F93
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4790;
/* rgb */ color: rgb(31, 71, 144);
/* oklch */ color: oklch(41.3% 0.129 261.2);
Tailwind
colors: {
  custom: {
    50: '#6c79b1',
    500: '#1f4790',
    950: '#000000',
  },
}
SCSS
$custom: #1f4790;
$custom-light: #6c79b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4790",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 144
  },
  "hsl": {
    "h": 218.761,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.41287,
    "c": 0.12921,
    "h": 261.2
  },
  "luminance": 0.06811
}

Semantic roles & 50–950 ramp

primary
#1F4790
secondary
#BC954E
accent
#AC40E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4790

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

Preview Lab → · Contrast checker → · Palette generator →

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