Colorise ProOKLCH Engine
ExploreStudioNamesPickerPairs
ExploreStudioNamesPickerPairsContrastExtract
Menu

Product

  • Home
  • Explore
  • Studio
  • Color Names

Tools

  • Picker
  • Color Pairs
  • Contrast
  • Image Extract
  • Gradient Lab
  • Palette Diff
  • Brand from URL

Guides

  • All guides
  • OKLCH vs HSL
  • WCAG vs APCA
  • OKLCH color scales
  • Gamut & sRGB
  • Extract from images
  • HEX to OKLCH
  • Dark mode colors
  • Color meanings
Home/Colors/#1F1228

Nearest named color · #1F1228

#1F1228

Nearest named color: Shot in the Dark

#1F1228 (rgb(31 18 40), hsl(275 38% 11%), oklch(0.211 0.046 310.2)) is closest to the named color Shot in the Dark. See tints, shades, harmonies, WCAG & APCA contrast, and CSS, Tailwind v4 & SCSS code.

What does Purple mean? →

#1F1228

oklch(0.211 0.046 310.2)

Color conversions

HEX
#1f1228
RGB
rgb(31 18 40)
HSL
hsl(275 38% 11%)
HWB
hwb(275 7% 84%)
OKLCH
oklch(0.211 0.046 310.2)
OKLab
oklab(0.211 0.029 -0.035)
CIE Lab
lab(7.83 10.98 -12.56)
LCH
lch(7.83 16.68 311.1)
CMYK
cmyk(22% 55% 0% 84%)

Tints · Shades · Tones

Tints

  • 32263B
  • 453A4E
  • 5A5062
  • 706777
  • 867E8C
  • 9D97A2
  • B5B0B9
  • CDCAD0
  • E6E4E7

Shades

  • 190E21
  • 140A1B
  • 0F0715
  • 0A040F
  • 060209
  • 030104
  • 010102
  • 000001
  • 000000

Tones

  • 281C30
  • 312639
  • 3A3041
  • 433B4A
  • 4D4653
  • 57515B
  • 615C64
  • 6B686E
  • 757477

Color harmonies

Complementary +180°

  • 1F1228

    Shot in the Dark

  • 111D05

    ≈ Nightmare

Analogous -30° +30°

  • 1F1228

    Shot in the Dark

  • 15162D

    ≈ Sambucus

  • 260F1F

    ≈ Inside

Triadic +120° +240°

  • 1F1228

    Shot in the Dark

  • 261400

    ≈ Cannon Black

  • 001E1C

    ≈ Stellar Explorer

Split-complementary +150° +210°

  • 1F1228

    Shot in the Dark

  • 1D1900

    ≈ Noir Mystique

  • 011F11

    ≈ Clock Chimes Thirteen

Tetradic +90° +180° +270°

  • 1F1228

    Shot in the Dark

  • 2A1007

    ≈ Root Brew

  • 111D05

    ≈ Nightmare

  • 001C25

    ≈ Creeping Death

Contrast & accessibility

Ag

On white

WCAG 17.86:1 · APCA Lc 105

AAA
Ag

On black

WCAG 1.17:1 · APCA Lc 0

Fail

Best text color: #FFFFFF

WCAG 17.86:1 (AAA) · APCA Lc 105

Contrast pairs

  • #1F1228 / #FFFFFF
  • #1F1228 / #000000
  • #FFFFFF / #1F1228
  • #000000 / #1F1228

Code snippets

CSS

:root {
  --shot-in-the-dark: #1f1228;
  --shot-in-the-dark-rgb: 31 18 40;
  --shot-in-the-dark-oklch: oklch(0.211 0.046 310.2);
}

.element {
  color: var(--shot-in-the-dark);
  background-color: hsl(275 38% 11%);
  border-color: oklch(0.211 0.046 310.2);
}

Tailwind CSS v4

@theme {
  --color-shot-in-the-dark: #1f1228;
  --color-shot-in-the-dark-50: #faf2ff;
  --color-shot-in-the-dark-100: #ede4f3;
  --color-shot-in-the-dark-200: #dbcfe3;
  --color-shot-in-the-dark-300: #bfb1c9;
  --color-shot-in-the-dark-400: #a797b3;
  --color-shot-in-the-dark-500: #907e9d;
  --color-shot-in-the-dark-600: #796b85;
  --color-shot-in-the-dark-700: #61556a;
  --color-shot-in-the-dark-800: #473e4f;
  --color-shot-in-the-dark-900: #312b37;
  --color-shot-in-the-dark-950: #1d1822;
}

SCSS

$shot-in-the-dark: #1f1228;
$shot-in-the-dark-rgb: 31, 18, 40;
$shot-in-the-dark-light: mix(#fff, $shot-in-the-dark, 20%);
$shot-in-the-dark-dark: mix(#000, $shot-in-the-dark, 20%);

.element {
  color: $shot-in-the-dark;
  box-shadow: 0 0 0 2px rgba($shot-in-the-dark, 0.35);
}

Similar named colors

  • 221122

    Inside

  • 221133

    Blacklist

  • 17182B

    Sambucus

  • 1D0D1D

    Shot in the Dark

  • 1F0B1E

    Meški Black

  • 1C0F33

    Midnight Monarch

  • 151632

    Lost in Sadness

  • 2B0F2E

    Dark Prom Queen

  • 151931

    Dark Knight

  • 1A161D

    Violet Void

  • 111122

    Corbeau

  • 16141C

    Back in Black

Palettes with similar colors

  • Pure Crown Jewels GrovePink · 5 Colors
  • Pure Epic Blue BriefViolet · Cold
  • Vivid Telemagenta NexusPink · Dark Mode UI
  • Vicious Violet BeaconRed · 10 Colors
  • Bold Sweet Desire BloomPink · 3 Colors
  • Muted Purple KilnPink · 8 Colors

Open in tools

PickerPairsContrast checkerStudioJSON API
Colorise Pro

Free OKLCH color workspace: precision color picker, color pairs, WCAG & APCA contrast checker, palette from image, Studio systems, names, gradients, and brand tools. Export HEX, CSS, Tailwind & DTCG.

OKLCH Engine

Product

  • Home
  • Explore
  • Studio
  • Color Names
  • Color Codes

Tools

  • Color Picker
  • Color Pairs
  • Contrast Checker
  • Image Extract
  • Gradient Lab
  • Palette Diff
  • Brand from URL
  • For presentations
  • For business cards
  • For SaaS landings
  • Duo pairs
  • Trio systems

Guides

  • All guides
  • OKLCH vs HSL
  • WCAG vs APCA
  • OKLCH color scales
  • Gamut & sRGB
  • Extract from images
  • HEX to OKLCH
  • Dark mode colors
  • Color meanings

Legal

  • Privacy
  • Terms

© 2026 Colorise Pro. All rights reserved.

© 2026 Colorise Pro. Built for precision color work.

Report infringement: [email protected] (Colorise Pro)

PrivacyTermsOKLCH · WCAG · APCA