#1F2897#1F2897

#1F2897 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.177 H 270.1°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2897
RGBrgb(31, 40, 151)
HSLhsl(236, 66%, 36%)
HSVhsv(236, 79%, 59%)
CMYKcmyk(79.5%, 73.5%, 0%, 40.8%)
CIE-LABlab(23.81, 37.06, -61.05)
CIE-LCHlch(23.81, 71.42, 301.26°)
OKLaboklab(35.86% 0.0004 -0.1768)
OKLCHoklch(35.86% 0.177 270.1)
XYZxyz(6.9079, 4.0425, 29.6884)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2897 #978E1F
analogous
#1F6497 #1F2897 #521F97
triadic
#1F2897 #971F28 #28971F
tetradic
#1F2897 #971F64 #978E1F #1F9752
square
#1F2897 #971F64 #978E1F #1F9752
split-complementary
#1F2897 #97521F #64971F
monochromatic
#0A0D31 #151B64 #1F2897 #2935CA #545FDC

Accessibility & contrast

On white

11.61
#1F2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2897
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2897#FFFFFF#000000##FFFFFF
##1F28971.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.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: #1f2897;
/* rgb */ color: rgb(31, 40, 151);
/* oklch */ color: oklch(35.9% 0.177 270.1);
Tailwind
colors: {
  custom: {
    50: '#7163b7',
    500: '#1f2897',
    950: '#000000',
  },
}
SCSS
$custom: #1f2897;
$custom-light: #7163b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2897",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 235.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35858,
    "c": 0.17681,
    "h": 270.1
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#1F2897
secondary
#BFB752
accent
#DC3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2897

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

Preview Lab → · Contrast checker → · Palette generator →

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