#1F2197#1F2197

#1F2197 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.184 H 271.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#1F2197
RGBrgb(31, 33, 151)
HSLhsl(239, 66%, 36%)
HSVhsv(239, 79%, 59%)
CMYKcmyk(79.5%, 78.1%, 0%, 40.8%)
CIE-LABlab(22.35, 41.18, -63.47)
CIE-LCHlch(22.35, 75.66, 302.98°)
OKLaboklab(34.82% 0.0032 -0.1838)
OKLCHoklch(34.82% 0.184 271)
XYZxyz(6.6930, 3.6126, 29.6167)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2197 #97951F
analogous
#1F5D97 #1F2197 #591F97
triadic
#1F2197 #971F21 #21971F
tetradic
#1F2197 #971F5D #97951F #1F9759
square
#1F2197 #971F5D #97951F #1F9759
split-complementary
#1F2197 #97591F #5D971F
monochromatic
#0A0B31 #151664 #1F2197 #292CCA #5457DC

Accessibility & contrast

On white

12.19
#1F2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2197
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2197#FFFFFF#000000##FFFFFF
##1F21971.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2197;
/* rgb */ color: rgb(31, 33, 151);
/* oklch */ color: oklch(34.8% 0.184 271.0);
Tailwind
colors: {
  custom: {
    50: '#715eb7',
    500: '#1f2197',
    950: '#000000',
  },
}
SCSS
$custom: #1f2197;
$custom-light: #715eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2197",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 239,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.18381,
    "h": 271
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2197

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

Preview Lab → · Contrast checker → · Palette generator →

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