#1F2097#1F2097

#1F2097 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.185 H 271.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#1F2097
RGBrgb(31, 32, 151)
HSLhsl(240, 66%, 36%)
HSVhsv(240, 79%, 59%)
CMYKcmyk(79.5%, 78.8%, 0%, 40.8%)
CIE-LABlab(22.15, 41.74, -63.79)
CIE-LCHlch(22.15, 76.23, 303.20°)
OKLaboklab(34.68% 0.0035 -0.1847)
OKLCHoklch(34.68% 0.185 271.1)
XYZxyz(6.6656, 3.5580, 29.6076)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2097 #97961F
analogous
#1F5C97 #1F2097 #5A1F97
triadic
#1F2097 #971F20 #20971F
tetradic
#1F2097 #971F5C #97961F #1F975A
square
#1F2097 #971F5C #97961F #1F975A
split-complementary
#1F2097 #975A1F #5C971F
monochromatic
#0A0A31 #151564 #1F2097 #292BCA #5456DC

Accessibility & contrast

On white

12.27
#1F2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#1F2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2097
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2097#FFFFFF#000000##FFFFFF
##1F20971.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2097;
/* rgb */ color: rgb(31, 32, 151);
/* oklch */ color: oklch(34.7% 0.185 271.1);
Tailwind
colors: {
  custom: {
    50: '#725eb7',
    500: '#1f2097',
    950: '#000000',
  },
}
SCSS
$custom: #1f2097;
$custom-light: #725eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2097",
  "rgb": {
    "r": 31,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 239.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34681,
    "c": 0.18473,
    "h": 271.1
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#1F2097
secondary
#BFBE52
accent
#E73FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F2097

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

Preview Lab → · Contrast checker → · Palette generator →

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