#1F093A#1F093A

#1F093A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.088 H 299.0°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#1F093A
RGBrgb(31, 9, 58)
HSLhsl(267, 73%, 13%)
HSVhsv(267, 84%, 23%)
CMYKcmyk(46.6%, 84.5%, 0%, 77.3%)
CIE-LABlab(7.16, 23.52, -27.00)
CIE-LCHlch(7.16, 35.81, 311.06°)
OKLaboklab(20.99% 0.0428 -0.0773)
OKLCHoklch(20.99% 0.088 299)
XYZxyz(1.4263, 0.7921, 4.0799)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F093A #243A09
analogous
#090B3A #1F093A #37093A
triadic
#1F093A #3A1F09 #093A1F
tetradic
#1F093A #3A090B #243A09 #093A37
square
#1F093A #3A090B #243A09 #093A37
split-complementary
#1F093A #3A3709 #0B3A09
monochromatic
#0E041A #0E041A #1F093A #3B116F #5819A4

Accessibility & contrast

On white

18.13
#1F093A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F093A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F093A
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F093A#FFFFFF#000000##FFFFFF
##1F093A1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163B
Deuteranopia (green-blind)
#001539
Tritanopia (blue-blind)
#191520
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f093a;
/* rgb */ color: rgb(31, 9, 58);
/* oklch */ color: oklch(21.0% 0.088 299.0);
Tailwind
colors: {
  custom: {
    50: '#5e4a71',
    500: '#1f093a',
    950: '#000000',
  },
}
SCSS
$custom: #1f093a;
$custom-light: #5e4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#1f093a",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 58
  },
  "hsl": {
    "h": 266.939,
    "s": 73.134,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20993,
    "c": 0.08837,
    "h": 299
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#1F093A
secondary
#547827
accent
#F0389D
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #1F093A

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

Preview Lab → · Contrast checker → · Palette generator →

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