#1F3B87#1F3B87

#1F3B87 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 37.9% C 0.132 H 265.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#1F3B87
RGBrgb(31, 59, 135)
HSLhsl(224, 63%, 33%)
HSVhsv(224, 77%, 53%)
CMYKcmyk(77%, 56.3%, 0%, 47.1%)
CIE-LABlab(27.21, 18.24, -45.59)
CIE-LCHlch(27.21, 49.11, 291.80°)
OKLaboklab(37.91% -0.0109 -0.1314)
OKLCHoklch(37.91% 0.132 265.3)
XYZxyz(6.5007, 5.1678, 23.5719)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3B87 #876B1F
analogous
#1F6F87 #1F3B87 #371F87
triadic
#1F3B87 #871F3B #3B871F
tetradic
#1F3B87 #871F6F #876B1F #1F8737
square
#1F3B87 #871F6F #876B1F #1F8737
split-complementary
#1F3B87 #87371F #6F871F
monochromatic
#080F23 #142555 #1F3B87 #2A51B9 #4B70D6

Accessibility & contrast

On white

10.33
#1F3B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F3B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3B87
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3B87#FFFFFF#000000##FFFFFF
##1F3B871.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003C85
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3b87;
/* rgb */ color: rgb(31, 59, 135);
/* oklch */ color: oklch(37.9% 0.132 265.3);
Tailwind
colors: {
  custom: {
    50: '#6b70ab',
    500: '#1f3b87',
    950: '#000000',
  },
}
SCSS
$custom: #1f3b87;
$custom-light: #6b70ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3b87",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 135
  },
  "hsl": {
    "h": 223.846,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37909,
    "c": 0.13185,
    "h": 265.3
  },
  "luminance": 0.05169
}

Semantic roles & 50–950 ramp

primary
#1F3B87
secondary
#B89A4A
accent
#BA42E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3B87

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

Preview Lab → · Contrast checker → · Palette generator →

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