#1F4087#1F4087

#1F4087 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.0% C 0.125 H 263.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#1F4087
RGBrgb(31, 64, 135)
HSLhsl(221, 63%, 33%)
HSVhsv(221, 77%, 53%)
CMYKcmyk(77%, 52.6%, 0%, 47.1%)
CIE-LABlab(28.66, 14.76, -43.24)
CIE-LCHlch(28.66, 45.69, 288.85°)
OKLaboklab(39.01% -0.015 -0.1244)
OKLCHoklch(39.01% 0.125 263.1)
XYZxyz(6.7701, 5.7066, 23.6617)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4087 #87661F
analogous
#1F7487 #1F4087 #321F87
triadic
#1F4087 #871F40 #40871F
tetradic
#1F4087 #871F74 #87661F #1F8732
square
#1F4087 #871F74 #87661F #1F8732
split-complementary
#1F4087 #87321F #74871F
monochromatic
#081123 #142855 #1F4087 #2A58B9 #4B77D6

Accessibility & contrast

On white

9.81
#1F4087 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F4087 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4087
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4087#FFFFFF#000000##FFFFFF
##1F40871.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#003F86
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4087;
/* rgb */ color: rgb(31, 64, 135);
/* oklch */ color: oklch(39.0% 0.125 263.1);
Tailwind
colors: {
  custom: {
    50: '#6b74aa',
    500: '#1f4087',
    950: '#000000',
  },
}
SCSS
$custom: #1f4087;
$custom-light: #6b74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4087",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 135
  },
  "hsl": {
    "h": 220.962,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3901,
    "c": 0.1253,
    "h": 263.1
  },
  "luminance": 0.05707
}

Semantic roles & 50–950 ramp

primary
#1F4087
secondary
#B8954A
accent
#B242E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4087

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

Preview Lab → · Contrast checker → · Palette generator →

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