#1F4487#1F4487

#1F4487 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 39.9% C 0.120 H 261.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#1F4487
RGBrgb(31, 68, 135)
HSLhsl(219, 63%, 33%)
HSVhsv(219, 77%, 53%)
CMYKcmyk(77%, 49.6%, 0%, 47.1%)
CIE-LABlab(29.85, 12.00, -41.33)
CIE-LCHlch(29.85, 43.04, 286.20°)
OKLaboklab(39.92% -0.0185 -0.1187)
OKLCHoklch(39.92% 0.12 261.1)
XYZxyz(7.0038, 6.1740, 23.7396)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4487 #87621F
analogous
#1F7887 #1F4487 #2E1F87
triadic
#1F4487 #871F44 #44871F
tetradic
#1F4487 #871F78 #87621F #1F872E
square
#1F4487 #871F78 #87621F #1F872E
split-complementary
#1F4487 #872E1F #78871F
monochromatic
#081223 #142B55 #1F4487 #2A5DB9 #4B7CD6

Accessibility & contrast

On white

9.40
#1F4487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4487
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4487#FFFFFF#000000##FFFFFF
##1F44871.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4B89
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4487;
/* rgb */ color: rgb(31, 68, 135);
/* oklch */ color: oklch(39.9% 0.120 261.1);
Tailwind
colors: {
  custom: {
    50: '#6a77aa',
    500: '#1f4487',
    950: '#000000',
  },
}
SCSS
$custom: #1f4487;
$custom-light: #6a77aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4487",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 135
  },
  "hsl": {
    "h": 218.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39917,
    "c": 0.12012,
    "h": 261.1
  },
  "luminance": 0.06175
}

Semantic roles & 50–950 ramp

primary
#1F4487
secondary
#B8914A
accent
#AB42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4487

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

Preview Lab → · Contrast checker → · Palette generator →

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