#1F3B97#1F3B97

#1F3B97 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.154 H 266.2°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#1F3B97
RGBrgb(31, 59, 151)
HSLhsl(226, 66%, 36%)
HSVhsv(226, 79%, 59%)
CMYKcmyk(79.5%, 60.9%, 0%, 40.8%)
CIE-LABlab(28.52, 24.58, -53.32)
CIE-LCHlch(28.52, 58.71, 294.75°)
OKLaboklab(39.3% -0.0101 -0.1541)
OKLCHoklch(39.3% 0.154 266.2)
XYZxyz(7.7130, 5.6527, 29.9567)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3B97 #977B1F
analogous
#1F7797 #1F3B97 #3F1F97
triadic
#1F3B97 #971F3B #3B971F
tetradic
#1F3B97 #971F77 #977B1F #1F973F
square
#1F3B97 #971F77 #977B1F #1F973F
split-complementary
#1F3B97 #973F1F #77971F
monochromatic
#0A1331 #152764 #1F3B97 #294FCA #5474DC

Accessibility & contrast

On white

9.86
#1F3B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1F3B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3B97
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3B97#FFFFFF#000000##FFFFFF
##1F3B971.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3b97;
/* rgb */ color: rgb(31, 59, 151);
/* oklch */ color: oklch(39.3% 0.154 266.2);
Tailwind
colors: {
  custom: {
    50: '#6f70b6',
    500: '#1f3b97',
    950: '#000000',
  },
}
SCSS
$custom: #1f3b97;
$custom-light: #6f70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3b97",
  "rgb": {
    "r": 31,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 226,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.15444,
    "h": 266.2
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#1F3B97
secondary
#BFA652
accent
#C13FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3B97

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

Preview Lab → · Contrast checker → · Palette generator →

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