#1F1F97#1F1F97

#1F1F97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.186 H 271.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1F1F97
RGBrgb(31, 31, 151)
HSLhsl(240, 66%, 36%)
HSVhsv(240, 79%, 59%)
CMYKcmyk(79.5%, 79.5%, 0%, 40.8%)
CIE-LABlab(21.96, 42.29, -64.11)
CIE-LCHlch(21.96, 76.80, 303.41°)
OKLaboklab(34.55% 0.0039 -0.1856)
OKLCHoklch(34.55% 0.186 271.2)
XYZxyz(6.6391, 3.5049, 29.5988)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F97 #97971F
analogous
#1F5B97 #1F1F97 #5B1F97
triadic
#1F1F97 #971F1F #1F971F
tetradic
#1F1F97 #971F5B #97971F #1F975B
square
#1F1F97 #971F5B #97971F #1F975B
split-complementary
#1F1F97 #975B1F #5B971F
monochromatic
#0A0A31 #151564 #1F1F97 #2929CA #5454DC

Accessibility & contrast

On white

12.34
#1F1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F97
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F97#FFFFFF#000000##FFFFFF
##1F1F971.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f1f97;
/* rgb */ color: rgb(31, 31, 151);
/* oklch */ color: oklch(34.5% 0.186 271.2);
Tailwind
colors: {
  custom: {
    50: '#725db7',
    500: '#1f1f97',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f97;
$custom-light: #725db7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f97",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.34547,
    "c": 0.18565,
    "h": 271.2
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#1F1F97
secondary
#BFBF52
accent
#E93FE9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1F1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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