#1F4387#1F4387

#1F4387 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.7% C 0.121 H 261.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#1F4387
RGBrgb(31, 67, 135)
HSLhsl(219, 63%, 33%)
HSVhsv(219, 77%, 53%)
CMYKcmyk(77%, 50.4%, 0%, 47.1%)
CIE-LABlab(29.55, 12.69, -41.81)
CIE-LCHlch(29.55, 43.69, 286.89°)
OKLaboklab(39.69% -0.0176 -0.1201)
OKLCHoklch(39.69% 0.121 261.6)
XYZxyz(6.9438, 6.0541, 23.7196)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4387 #87631F
analogous
#1F7787 #1F4387 #2F1F87
triadic
#1F4387 #871F43 #43871F
tetradic
#1F4387 #871F77 #87631F #1F872F
square
#1F4387 #871F77 #87631F #1F872F
split-complementary
#1F4387 #872F1F #77871F
monochromatic
#081223 #142A55 #1F4387 #2A5CB9 #4B7BD6

Accessibility & contrast

On white

9.50
#1F4387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#1F4387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4387
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4387#FFFFFF#000000##FFFFFF
##1F43871.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4B89
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#00535E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4387;
/* rgb */ color: rgb(31, 67, 135);
/* oklch */ color: oklch(39.7% 0.121 261.6);
Tailwind
colors: {
  custom: {
    50: '#6a76aa',
    500: '#1f4387',
    950: '#000000',
  },
}
SCSS
$custom: #1f4387;
$custom-light: #6a76aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4387",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 135
  },
  "hsl": {
    "h": 219.231,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39689,
    "c": 0.1214,
    "h": 261.6
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#1F4387
secondary
#B8924A
accent
#AD42E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4387

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

Preview Lab → · Contrast checker → · Palette generator →

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