#1F083C#1F083C

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

Color values

HEX#1F083C
RGBrgb(31, 8, 60)
HSLhsl(267, 76%, 13%)
HSVhsv(267, 87%, 24%)
CMYKcmyk(48.3%, 86.7%, 0%, 76.5%)
CIE-LABlab(7.15, 24.73, -28.46)
CIE-LCHlch(7.15, 37.70, 310.99°)
OKLaboklab(21.05% 0.0435 -0.0816)
OKLCHoklch(21.05% 0.092 298)
XYZxyz(1.4673, 0.7912, 4.3495)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F083C #253C08
analogous
#080B3C #1F083C #39083C
triadic
#1F083C #3C1F08 #083C1F
tetradic
#1F083C #3C080B #253C08 #083C39
square
#1F083C #3C080B #253C08 #083C39
split-complementary
#1F083C #3C3908 #0B3C08
monochromatic
#0E041B #0E041B #1F083C #3B0F72 #5716A8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F083C#FFFFFF#000000##FFFFFF
##1F083C1.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)
#00163D
Deuteranopia (green-blind)
#00153B
Tritanopia (blue-blind)
#181621
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f083c;
/* rgb */ color: rgb(31, 8, 60);
/* oklch */ color: oklch(21.0% 0.092 298.0);
Tailwind
colors: {
  custom: {
    50: '#5e4a72',
    500: '#1f083c',
    950: '#000000',
  },
}
SCSS
$custom: #1f083c;
$custom-light: #5e4a72;
$custom-dark: #000000;
JSON
{
  "hex": "#1f083c",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 60
  },
  "hsl": {
    "h": 266.538,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21049,
    "c": 0.09243,
    "h": 298
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#1F083C
secondary
#557B25
accent
#F3359F
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #1F083C

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

Preview Lab → · Contrast checker → · Palette generator →

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