#1F3E97#1F3E97

#1F3E97 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.151 H 265.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#1F3E97
RGBrgb(31, 62, 151)
HSLhsl(225, 66%, 36%)
HSVhsv(225, 79%, 59%)
CMYKcmyk(79.5%, 58.9%, 0%, 40.8%)
CIE-LABlab(29.34, 22.53, -51.99)
CIE-LCHlch(29.34, 56.66, 293.43°)
OKLaboklab(39.92% -0.0122 -0.1501)
OKLCHoklch(39.92% 0.151 265.4)
XYZxyz(7.8716, 5.9700, 30.0096)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E97 #97781F
analogous
#1F7A97 #1F3E97 #3C1F97
triadic
#1F3E97 #971F3E #3E971F
tetradic
#1F3E97 #971F7A #97781F #1F973C
square
#1F3E97 #971F7A #97781F #1F973C
split-complementary
#1F3E97 #973C1F #7A971F
monochromatic
#0A1431 #152964 #1F3E97 #2953CA #5477DC

Accessibility & contrast

On white

9.57
#1F3E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#1F3E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E97
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E97#FFFFFF#000000##FFFFFF
##1F3E971.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1f3e97;
/* rgb */ color: rgb(31, 62, 151);
/* oklch */ color: oklch(39.9% 0.151 265.4);
Tailwind
colors: {
  custom: {
    50: '#6f72b6',
    500: '#1f3e97',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e97;
$custom-light: #6f72b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e97",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 224.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.15064,
    "h": 265.4
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#1F3E97
secondary
#BFA352
accent
#BD3FE9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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