#1F3D97#1F3D97

#1F3D97 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.7% C 0.152 H 265.7°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#1F3D97
RGBrgb(31, 61, 151)
HSLhsl(225, 66%, 36%)
HSVhsv(225, 79%, 59%)
CMYKcmyk(79.5%, 59.6%, 0%, 40.8%)
CIE-LABlab(29.06, 23.21, -52.44)
CIE-LCHlch(29.06, 57.34, 293.88°)
OKLaboklab(39.71% -0.0115 -0.1515)
OKLCHoklch(39.71% 0.152 265.7)
XYZxyz(7.8178, 5.8623, 29.9917)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D97 #97791F
analogous
#1F7997 #1F3D97 #3D1F97
triadic
#1F3D97 #971F3D #3D971F
tetradic
#1F3D97 #971F79 #97791F #1F973D
square
#1F3D97 #971F79 #97791F #1F973D
split-complementary
#1F3D97 #973D1F #79971F
monochromatic
#0A1431 #152864 #1F3D97 #2952CA #5476DC

Accessibility & contrast

On white

9.67
#1F3D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1F3D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D97
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D97#FFFFFF#000000##FFFFFF
##1F3D971.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3d97;
/* rgb */ color: rgb(31, 61, 151);
/* oklch */ color: oklch(39.7% 0.152 265.7);
Tailwind
colors: {
  custom: {
    50: '#6f72b6',
    500: '#1f3d97',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d97;
$custom-light: #6f72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d97",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 151
  },
  "hsl": {
    "h": 225,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39709,
    "c": 0.15191,
    "h": 265.7
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#1F3D97
secondary
#BFA452
accent
#BE3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3D97

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

Preview Lab → · Contrast checker → · Palette generator →

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