#1F1FA1#1F1FA1

#1F1FA1 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.198 H 270.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#1F1FA1
RGBrgb(31, 31, 161)
HSLhsl(240, 68%, 38%)
HSVhsv(240, 81%, 63%)
CMYKcmyk(80.7%, 80.7%, 0%, 36.9%)
CIE-LABlab(23.15, 45.59, -68.27)
CIE-LCHlch(23.15, 82.09, 303.73°)
OKLaboklab(35.72% 0.0018 -0.1977)
OKLCHoklch(35.72% 0.198 270.5)
XYZxyz(7.4859, 3.8436, 34.0587)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1FA1 #A1A11F
analogous
#1F60A1 #1F1FA1 #601FA1
triadic
#1F1FA1 #A11F1F #1FA11F
tetradic
#1F1FA1 #A11F60 #A1A11F #1FA160
square
#1F1FA1 #A11F60 #A1A11F #1FA160
split-complementary
#1F1FA1 #A1601F #60A11F
monochromatic
#0B0B3A #15156E #1F1FA1 #2929D4 #5B5BDF

Accessibility & contrast

On white

11.87
#1F1FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F1FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1FA1
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1FA1#FFFFFF#000000##FFFFFF
##1F1FA11.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00309F
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f1fa1;
/* rgb */ color: rgb(31, 31, 161);
/* oklch */ color: oklch(35.7% 0.198 270.5);
Tailwind
colors: {
  custom: {
    50: '#745ebe',
    500: '#1f1fa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f1fa1;
$custom-light: #745ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1fa1",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 240,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.35721,
    "c": 0.19768,
    "h": 270.5
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#1F1FA1
secondary
#C4C458
accent
#EB3DEB
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #1F1FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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