#1F3C97#1F3C97

#1F3C97 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.153 H 266.0°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#1F3C97
RGBrgb(31, 60, 151)
HSLhsl(226, 66%, 36%)
HSVhsv(226, 79%, 59%)
CMYKcmyk(79.5%, 60.3%, 0%, 40.8%)
CIE-LABlab(28.79, 23.90, -52.88)
CIE-LCHlch(28.79, 58.03, 294.32°)
OKLaboklab(39.51% -0.0108 -0.1528)
OKLCHoklch(39.51% 0.153 266)
XYZxyz(7.7649, 5.7565, 29.9740)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C97 #977A1F
analogous
#1F7897 #1F3C97 #3E1F97
triadic
#1F3C97 #971F3C #3C971F
tetradic
#1F3C97 #971F78 #977A1F #1F973E
square
#1F3C97 #971F78 #977A1F #1F973E
split-complementary
#1F3C97 #973E1F #78971F
monochromatic
#0A1431 #152864 #1F3C97 #2950CA #5475DC

Accessibility & contrast

On white

9.76
#1F3C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1F3C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C97
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C97#FFFFFF#000000##FFFFFF
##1F3C971.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005363
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3c97;
/* rgb */ color: rgb(31, 60, 151);
/* oklch */ color: oklch(39.5% 0.153 266.0);
Tailwind
colors: {
  custom: {
    50: '#6f71b6',
    500: '#1f3c97',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c97;
$custom-light: #6f71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c97",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 225.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39505,
    "c": 0.15318,
    "h": 266
  },
  "luminance": 0.05757
}

Semantic roles & 50–950 ramp

primary
#1F3C97
secondary
#BFA552
accent
#C03FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3C97

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

Preview Lab → · Contrast checker → · Palette generator →

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