#1F3987#1F3987

#1F3987 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 37.5% C 0.134 H 266.0°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#1F3987
RGBrgb(31, 57, 135)
HSLhsl(225, 63%, 33%)
HSVhsv(225, 77%, 53%)
CMYKcmyk(77%, 57.8%, 0%, 47.1%)
CIE-LABlab(26.64, 19.63, -46.52)
CIE-LCHlch(26.64, 50.49, 292.88°)
OKLaboklab(37.48% -0.0093 -0.1342)
OKLCHoklch(37.48% 0.134 266)
XYZxyz(6.3998, 4.9661, 23.5382)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3987 #876D1F
analogous
#1F6D87 #1F3987 #391F87
triadic
#1F3987 #871F39 #39871F
tetradic
#1F3987 #871F6D #876D1F #1F8739
square
#1F3987 #871F6D #876D1F #1F8739
split-complementary
#1F3987 #87391F #6D871F
monochromatic
#080F23 #142455 #1F3987 #2A4EB9 #4B6DD6

Accessibility & contrast

On white

10.53
#1F3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3987
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3987#FFFFFF#000000##FFFFFF
##1F39871.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#003A85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3987;
/* rgb */ color: rgb(31, 57, 135);
/* oklch */ color: oklch(37.5% 0.134 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b6eab',
    500: '#1f3987',
    950: '#000000',
  },
}
SCSS
$custom: #1f3987;
$custom-light: #6b6eab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3987",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 225,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37479,
    "c": 0.13448,
    "h": 266
  },
  "luminance": 0.04967
}

Semantic roles & 50–950 ramp

primary
#1F3987
secondary
#B89D4A
accent
#BD42E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3987

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

Preview Lab → · Contrast checker → · Palette generator →

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