#1F4584#1F4584

#1F4584 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.9% C 0.114 H 260.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#1F4584
RGBrgb(31, 69, 132)
HSLhsl(217, 62%, 32%)
HSVhsv(217, 77%, 52%)
CMYKcmyk(76.5%, 47.7%, 0%, 48.2%)
CIE-LABlab(29.94, 10.11, -39.31)
CIE-LCHlch(29.94, 40.59, 284.42°)
OKLaboklab(39.92% -0.0199 -0.1127)
OKLCHoklch(39.92% 0.114 260)
XYZxyz(6.8565, 6.2127, 22.6631)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4584 #845E1F
analogous
#1F7884 #1F4584 #2C1F84
triadic
#1F4584 #841F45 #45841F
tetradic
#1F4584 #841F78 #845E1F #1F842C
square
#1F4584 #841F78 #845E1F #1F842C
split-complementary
#1F4584 #842C1F #78841F
monochromatic
#081121 #132B52 #1F4584 #2B5FB6 #497DD4

Accessibility & contrast

On white

9.36
#1F4584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F4584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4584
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4584#FFFFFF#000000##FFFFFF
##1F45841.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244B86
Deuteranopia (green-blind)
#0C4283
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4584;
/* rgb */ color: rgb(31, 69, 132);
/* oklch */ color: oklch(39.9% 0.114 260.0);
Tailwind
colors: {
  custom: {
    50: '#6a78a8',
    500: '#1f4584',
    950: '#000000',
  },
}
SCSS
$custom: #1f4584;
$custom-light: #6a78a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4584",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 132
  },
  "hsl": {
    "h": 217.426,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39925,
    "c": 0.11449,
    "h": 260
  },
  "luminance": 0.06213
}

Semantic roles & 50–950 ramp

primary
#1F4584
secondary
#B78D48
accent
#A843E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4584

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

Preview Lab → · Contrast checker → · Palette generator →

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