#1F3F97#1F3F97

#1F3F97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.149 H 265.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#1F3F97
RGBrgb(31, 63, 151)
HSLhsl(224, 66%, 36%)
HSVhsv(224, 79%, 59%)
CMYKcmyk(79.5%, 58.3%, 0%, 40.8%)
CIE-LABlab(29.61, 21.84, -51.54)
CIE-LCHlch(29.61, 55.98, 292.97°)
OKLaboklab(40.12% -0.0129 -0.1488)
OKLCHoklch(40.12% 0.149 265.1)
XYZxyz(7.9265, 6.0798, 30.0279)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F97 #97771F
analogous
#1F7B97 #1F3F97 #3B1F97
triadic
#1F3F97 #971F3F #3F971F
tetradic
#1F3F97 #971F7B #97771F #1F973B
square
#1F3F97 #971F7B #97771F #1F973B
split-complementary
#1F3F97 #973B1F #7B971F
monochromatic
#0A1531 #152A64 #1F3F97 #2954CA #5479DC

Accessibility & contrast

On white

9.48
#1F3F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F3F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F97
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F97#FFFFFF#000000##FFFFFF
##1F3F971.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005564
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f3f97;
/* rgb */ color: rgb(31, 63, 151);
/* oklch */ color: oklch(40.1% 0.149 265.1);
Tailwind
colors: {
  custom: {
    50: '#6f73b6',
    500: '#1f3f97',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f97;
$custom-light: #6f73b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f97",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 224,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40122,
    "c": 0.14937,
    "h": 265.1
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#1F3F97
secondary
#BFA252
accent
#BC3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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