#1F2597#1F2597

#1F2597 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.180 H 270.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1F2597
RGBrgb(31, 37, 151)
HSLhsl(237, 66%, 36%)
HSVhsv(237, 79%, 59%)
CMYKcmyk(79.5%, 75.5%, 0%, 40.8%)
CIE-LABlab(23.16, 38.87, -62.12)
CIE-LCHlch(23.16, 73.28, 302.04°)
OKLaboklab(35.39% 0.0017 -0.1799)
OKLCHoklch(35.39% 0.18 270.5)
XYZxyz(6.8107, 3.8480, 29.6560)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2597 #97911F
analogous
#1F6197 #1F2597 #551F97
triadic
#1F2597 #971F25 #25971F
tetradic
#1F2597 #971F61 #97911F #1F9755
square
#1F2597 #971F61 #97911F #1F9755
split-complementary
#1F2597 #97551F #61971F
monochromatic
#0A0C31 #151964 #1F2597 #2931CA #545BDC

Accessibility & contrast

On white

11.87
#1F2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2597
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2597#FFFFFF#000000##FFFFFF
##1F25971.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2597;
/* rgb */ color: rgb(31, 37, 151);
/* oklch */ color: oklch(35.4% 0.180 270.5);
Tailwind
colors: {
  custom: {
    50: '#7161b7',
    500: '#1f2597',
    950: '#000000',
  },
}
SCSS
$custom: #1f2597;
$custom-light: #7161b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2597",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 237,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35395,
    "c": 0.17991,
    "h": 270.5
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#1F2597
secondary
#BFBA52
accent
#E03FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2597

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

Preview Lab → · Contrast checker → · Palette generator →

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