#1F3C87#1F3C87

#1F3C87 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.1% C 0.131 H 264.9°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#1F3C87
RGBrgb(31, 60, 135)
HSLhsl(223, 63%, 33%)
HSVhsv(223, 77%, 53%)
CMYKcmyk(77%, 55.6%, 0%, 47.1%)
CIE-LABlab(27.49, 17.54, -45.13)
CIE-LCHlch(27.49, 48.42, 291.24°)
OKLaboklab(38.13% -0.0117 -0.13)
OKLCHoklch(38.13% 0.131 264.9)
XYZxyz(6.5526, 5.2716, 23.5891)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C87 #876A1F
analogous
#1F7087 #1F3C87 #361F87
triadic
#1F3C87 #871F3C #3C871F
tetradic
#1F3C87 #871F70 #876A1F #1F8736
square
#1F3C87 #871F70 #876A1F #1F8736
split-complementary
#1F3C87 #87361F #70871F
monochromatic
#081023 #142655 #1F3C87 #2A52B9 #4B71D6

Accessibility & contrast

On white

10.22
#1F3C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C87
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C87#FFFFFF#000000##FFFFFF
##1F3C871.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#004E5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3c87;
/* rgb */ color: rgb(31, 60, 135);
/* oklch */ color: oklch(38.1% 0.131 264.9);
Tailwind
colors: {
  custom: {
    50: '#6b71ab',
    500: '#1f3c87',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c87;
$custom-light: #6b71ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c87",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 135
  },
  "hsl": {
    "h": 223.269,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38126,
    "c": 0.13055,
    "h": 264.9
  },
  "luminance": 0.05272
}

Semantic roles & 50–950 ramp

primary
#1F3C87
secondary
#B8994A
accent
#B842E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3C87

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

Preview Lab → · Contrast checker → · Palette generator →

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