#1F4DA7#1F4DA7

#1F4DA7 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.154 H 261.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#1F4DA7
RGBrgb(31, 77, 167)
HSLhsl(220, 69%, 39%)
HSVhsv(220, 81%, 65%)
CMYKcmyk(81.4%, 53.9%, 0%, 34.5%)
CIE-LABlab(34.78, 18.67, -52.81)
CIE-LCHlch(34.78, 56.01, 289.47°)
OKLaboklab(44.42% -0.0216 -0.1523)
OKLCHoklch(44.42% 0.154 261.9)
XYZxyz(10.1915, 8.3879, 37.6336)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4DA7 #A7791F
analogous
#1F91A7 #1F4DA7 #351FA7
triadic
#1F4DA7 #A71F4D #4DA71F
tetradic
#1F4DA7 #A71F91 #A7791F #1FA735
square
#1F4DA7 #A71F91 #A7791F #1FA735
split-complementary
#1F4DA7 #A7351F #91A71F
monochromatic
#0C1D40 #153573 #1F4DA7 #2B66D8 #5F8BE1

Accessibility & contrast

On white

7.84
#1F4DA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#1F4DA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4DA7
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4DA7#FFFFFF#000000##FFFFFF
##1F4DA71.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0358AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4da7;
/* rgb */ color: rgb(31, 77, 167);
/* oklch */ color: oklch(44.4% 0.154 261.9);
Tailwind
colors: {
  custom: {
    50: '#727ec2',
    500: '#1f4da7',
    950: '#000000',
  },
}
SCSS
$custom: #1f4da7;
$custom-light: #727ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4da7",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 219.706,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44417,
    "c": 0.1538,
    "h": 261.9
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#1F4DA7
secondary
#C6A25C
accent
#B03CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090912
muted
#7B7B81

Preview Lab

Preview with #1F4DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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