#1F2997#1F2997

#1F2997 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.176 H 270.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#1F2997
RGBrgb(31, 41, 151)
HSLhsl(235, 66%, 36%)
HSVhsv(235, 79%, 59%)
CMYKcmyk(79.5%, 72.8%, 0%, 40.8%)
CIE-LABlab(24.03, 36.44, -60.68)
CIE-LCHlch(24.03, 70.78, 300.99°)
OKLaboklab(36.02% 0 -0.1757)
OKLCHoklch(36.02% 0.176 270)
XYZxyz(6.9420, 4.1108, 29.6997)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2997 #978D1F
analogous
#1F6597 #1F2997 #511F97
triadic
#1F2997 #971F29 #29971F
tetradic
#1F2997 #971F65 #978D1F #1F9751
square
#1F2997 #971F65 #978D1F #1F9751
split-complementary
#1F2997 #97511F #65971F
monochromatic
#0A0D31 #151B64 #1F2997 #2937CA #5460DC

Accessibility & contrast

On white

11.52
#1F2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#1F2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2997
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2997#FFFFFF#000000##FFFFFF
##1F29971.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00485D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2997;
/* rgb */ color: rgb(31, 41, 151);
/* oklch */ color: oklch(36.0% 0.176 270.0);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#1f2997',
    950: '#000000',
  },
}
SCSS
$custom: #1f2997;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2997",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 235,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36018,
    "c": 0.17574,
    "h": 270
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#1F2997
secondary
#BFB652
accent
#DB3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2997

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

Preview Lab → · Contrast checker → · Palette generator →

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