#1F4EA6#1F4EA6

#1F4EA6 is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.6% C 0.151 H 261.5°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#1F4EA6
RGBrgb(31, 78, 166)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 81%, 65%)
CMYKcmyk(81.3%, 53%, 0%, 34.9%)
CIE-LABlab(34.99, 17.60, -51.87)
CIE-LCHlch(34.99, 54.78, 288.74°)
OKLaboklab(44.55% -0.0224 -0.1495)
OKLCHoklch(44.55% 0.151 261.5)
XYZxyz(10.1699, 8.4920, 37.1721)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4EA6 #A6771F
analogous
#1F91A6 #1F4EA6 #331FA6
triadic
#1F4EA6 #A61F4E #4EA61F
tetradic
#1F4EA6 #A61F91 #A6771F #1FA633
square
#1F4EA6 #A61F91 #A6771F #1FA633
split-complementary
#1F4EA6 #A6331F #91A61F
monochromatic
#0C1E3F #153672 #1F4EA6 #2B67D7 #5E8CE1

Accessibility & contrast

On white

7.78
#1F4EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#1F4EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4EA6
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4EA6#FFFFFF#000000##FFFFFF
##1F4EA61.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59A9
Deuteranopia (green-blind)
#004CA4
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #1f4ea6;
/* rgb */ color: rgb(31, 78, 166);
/* oklch */ color: oklch(44.6% 0.151 261.5);
Tailwind
colors: {
  custom: {
    50: '#727ec1',
    500: '#1f4ea6',
    950: '#000000',
  },
}
SCSS
$custom: #1f4ea6;
$custom-light: #727ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4ea6",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 166
  },
  "hsl": {
    "h": 219.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44552,
    "c": 0.15118,
    "h": 261.5
  },
  "luminance": 0.08493
}

Semantic roles & 50–950 ramp

primary
#1F4EA6
secondary
#C5A15B
accent
#AE3CEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F4EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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