#1F093E#1F093E

#1F093E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.094 H 296.4°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#1F093E
RGBrgb(31, 9, 62)
HSLhsl(265, 75%, 14%)
HSVhsv(265, 85%, 24%)
CMYKcmyk(50%, 85.5%, 0%, 75.7%)
CIE-LABlab(7.54, 24.85, -29.26)
CIE-LCHlch(7.54, 38.39, 310.34°)
OKLaboklab(21.4% 0.0417 -0.0838)
OKLCHoklch(21.4% 0.094 296.4)
XYZxyz(1.5320, 0.8344, 4.6368)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F093E #283E09
analogous
#090E3E #1F093E #3A093E
triadic
#1F093E #3E1F09 #093E1F
tetradic
#1F093E #3E090E #283E09 #093E3A
square
#1F093E #3E090E #283E09 #093E3A
split-complementary
#1F093E #3E3A09 #0E3E09
monochromatic
#0D041B #0D041B #1F093E #3A1173 #5419A9

Accessibility & contrast

On white

18.00
#1F093E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F093E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F093E
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F093E#FFFFFF#000000##FFFFFF
##1F093E1.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001740
Deuteranopia (green-blind)
#00163D
Tritanopia (blue-blind)
#171723
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1f093e;
/* rgb */ color: rgb(31, 9, 62);
/* oklch */ color: oklch(21.4% 0.094 296.4);
Tailwind
colors: {
  custom: {
    50: '#5f4b74',
    500: '#1f093e',
    950: '#000000',
  },
}
SCSS
$custom: #1f093e;
$custom-light: #5f4b74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f093e",
  "rgb": {
    "r": 31,
    "g": 9,
    "b": 62
  },
  "hsl": {
    "h": 264.906,
    "s": 74.648,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21404,
    "c": 0.09362,
    "h": 296.4
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#1F093E
secondary
#597C27
accent
#F137A4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F093E

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

Preview Lab → · Contrast checker → · Palette generator →

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