#1F3897#1F3897

#1F3897 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.158 H 267.0°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1F3897
RGBrgb(31, 56, 151)
HSLhsl(228, 66%, 36%)
HSVhsv(228, 79%, 59%)
CMYKcmyk(79.5%, 62.9%, 0%, 40.8%)
CIE-LABlab(27.72, 26.62, -54.63)
CIE-LCHlch(27.72, 60.77, 295.98°)
OKLaboklab(38.71% -0.0082 -0.158)
OKLCHoklch(38.71% 0.158 267)
XYZxyz(7.5632, 5.3532, 29.9068)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3897 #977E1F
analogous
#1F7497 #1F3897 #421F97
triadic
#1F3897 #971F38 #38971F
tetradic
#1F3897 #971F74 #977E1F #1F9742
square
#1F3897 #971F74 #977E1F #1F9742
split-complementary
#1F3897 #97421F #74971F
monochromatic
#0A1231 #152564 #1F3897 #294BCA #5471DC

Accessibility & contrast

On white

10.14
#1F3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3897
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3897#FFFFFF#000000##FFFFFF
##1F38971.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#003C95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3897;
/* rgb */ color: rgb(31, 56, 151);
/* oklch */ color: oklch(38.7% 0.158 267.0);
Tailwind
colors: {
  custom: {
    50: '#6f6eb6',
    500: '#1f3897',
    950: '#000000',
  },
}
SCSS
$custom: #1f3897;
$custom-light: #6f6eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3897",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 227.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38708,
    "c": 0.15819,
    "h": 267
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#1F3897
secondary
#BFA952
accent
#C53FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3897

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

Preview Lab → · Contrast checker → · Palette generator →

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