#1F093C#1F093C

#1F093C is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.091 H 297.7°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#1F093C
RGBrgb(31, 9, 60)
HSLhsl(266, 74%, 14%)
HSVhsv(266, 85%, 24%)
CMYKcmyk(48.3%, 85%, 0%, 76.5%)
CIE-LABlab(7.34, 24.19, -28.14)
CIE-LCHlch(7.34, 37.11, 310.68°)
OKLaboklab(21.2% 0.0423 -0.0806)
OKLCHoklch(21.2% 0.091 297.7)
XYZxyz(1.4782, 0.8129, 4.3531)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F093C #263C09
analogous
#090C3C #1F093C #38093C
triadic
#1F093C #3C1F09 #093C1F
tetradic
#1F093C #3C090C #263C09 #093C38
square
#1F093C #3C090C #263C09 #093C38
split-complementary
#1F093C #3C3809 #0C3C09
monochromatic
#0E041B #0E041B #1F093C #3A1171 #5619A6

Accessibility & contrast

On white

18.06
#1F093C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F093C
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F093C#FFFFFF#000000##FFFFFF
##1F093C1.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f093c;
/* rgb */ color: rgb(31, 9, 60);
/* oklch */ color: oklch(21.2% 0.091 297.7);
Tailwind
colors: {
  custom: {
    50: '#5e4a72',
    500: '#1f093c',
    950: '#000000',
  },
}
SCSS
$custom: #1f093c;
$custom-light: #5e4a72;
$custom-dark: #000000;
JSON
{
  "hex": "#1f093c",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 60
  },
  "hsl": {
    "h": 265.882,
    "s": 73.913,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21197,
    "c": 0.09099,
    "h": 297.7
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#1F093C
secondary
#567A27
accent
#F137A1
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #1F093C

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

Preview Lab → · Contrast checker → · Palette generator →

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