#1F3597#1F3597

#1F3597 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.1% C 0.162 H 267.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1F3597
RGBrgb(31, 53, 151)
HSLhsl(229, 66%, 36%)
HSVhsv(229, 79%, 59%)
CMYKcmyk(79.5%, 64.9%, 0%, 40.8%)
CIE-LABlab(26.94, 28.64, -55.91)
CIE-LCHlch(26.94, 62.82, 297.13°)
OKLaboklab(38.13% -0.0063 -0.1618)
OKLCHoklch(38.13% 0.162 267.8)
XYZxyz(7.4221, 5.0710, 29.8598)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3597 #97811F
analogous
#1F7197 #1F3597 #451F97
triadic
#1F3597 #971F35 #35971F
tetradic
#1F3597 #971F71 #97811F #1F9745
square
#1F3597 #971F71 #97811F #1F9745
split-complementary
#1F3597 #97451F #71971F
monochromatic
#0A1131 #152364 #1F3597 #2947CA #546DDC

Accessibility & contrast

On white

10.42
#1F3597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3597
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3597#FFFFFF#000000##FFFFFF
##1F35971.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004F61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3597;
/* rgb */ color: rgb(31, 53, 151);
/* oklch */ color: oklch(38.1% 0.162 267.8);
Tailwind
colors: {
  custom: {
    50: '#706cb7',
    500: '#1f3597',
    950: '#000000',
  },
}
SCSS
$custom: #1f3597;
$custom-light: #706cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3597",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 151
  },
  "hsl": {
    "h": 229,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3813,
    "c": 0.16189,
    "h": 267.8
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#1F3597
secondary
#BFAB52
accent
#CA3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1F3597

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

Preview Lab → · Contrast checker → · Palette generator →

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