#1F4084#1F4084

#1F4084 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.8% C 0.121 H 262.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#1F4084
RGBrgb(31, 64, 132)
HSLhsl(220, 62%, 32%)
HSVhsv(220, 77%, 52%)
CMYKcmyk(76.5%, 51.5%, 0%, 48.2%)
CIE-LABlab(28.44, 13.56, -41.73)
CIE-LCHlch(28.44, 43.88, 288.00°)
OKLaboklab(38.77% -0.0154 -0.1199)
OKLCHoklch(38.77% 0.121 262.7)
XYZxyz(6.5618, 5.6233, 22.5649)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4084 #84631F
analogous
#1F7384 #1F4084 #311F84
triadic
#1F4084 #841F40 #40841F
tetradic
#1F4084 #841F73 #84631F #1F8431
square
#1F4084 #841F73 #84631F #1F8431
split-complementary
#1F4084 #84311F #73841F
monochromatic
#081021 #132852 #1F4084 #2B58B6 #4977D4

Accessibility & contrast

On white

9.88
#1F4084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F4084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4084
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4084#FFFFFF#000000##FFFFFF
##1F40841.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174886
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4084;
/* rgb */ color: rgb(31, 64, 132);
/* oklch */ color: oklch(38.8% 0.121 262.7);
Tailwind
colors: {
  custom: {
    50: '#6a74a8',
    500: '#1f4084',
    950: '#000000',
  },
}
SCSS
$custom: #1f4084;
$custom-light: #6a74a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4084",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 132
  },
  "hsl": {
    "h": 220.396,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38774,
    "c": 0.12094,
    "h": 262.7
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#1F4084
secondary
#B79348
accent
#B043E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4084

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

Preview Lab → · Contrast checker → · Palette generator →

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