#1F3A87#1F3A87

#1F3A87 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.133 H 265.7°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#1F3A87
RGBrgb(31, 58, 135)
HSLhsl(224, 63%, 33%)
HSVhsv(224, 77%, 53%)
CMYKcmyk(77%, 57%, 0%, 47.1%)
CIE-LABlab(26.92, 18.93, -46.06)
CIE-LCHlch(26.92, 49.80, 292.35°)
OKLaboklab(37.69% -0.0101 -0.1328)
OKLCHoklch(37.69% 0.133 265.7)
XYZxyz(6.4498, 5.0660, 23.5549)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A87 #876C1F
analogous
#1F6E87 #1F3A87 #381F87
triadic
#1F3A87 #871F3A #3A871F
tetradic
#1F3A87 #871F6E #876C1F #1F8738
square
#1F3A87 #871F6E #876C1F #1F8738
split-complementary
#1F3A87 #87381F #6E871F
monochromatic
#080F23 #142555 #1F3A87 #2A4FB9 #4B6FD6

Accessibility & contrast

On white

10.43
#1F3A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A87
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A87#FFFFFF#000000##FFFFFF
##1F3A871.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3a87;
/* rgb */ color: rgb(31, 58, 135);
/* oklch */ color: oklch(37.7% 0.133 265.7);
Tailwind
colors: {
  custom: {
    50: '#6b6fab',
    500: '#1f3a87',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a87;
$custom-light: #6b6fab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a87",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 135
  },
  "hsl": {
    "h": 224.423,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37693,
    "c": 0.13316,
    "h": 265.7
  },
  "luminance": 0.05067
}

Semantic roles & 50–950 ramp

primary
#1F3A87
secondary
#B89B4A
accent
#BB42E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3A87

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

Preview Lab → · Contrast checker → · Palette generator →

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