#1F083A#1F083A

#1F083A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.090 H 299.4°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#1F083A
RGBrgb(31, 8, 58)
HSLhsl(268, 76%, 13%)
HSVhsv(268, 86%, 23%)
CMYKcmyk(46.6%, 86.2%, 0%, 77.3%)
CIE-LABlab(6.96, 24.05, -27.32)
CIE-LCHlch(6.96, 36.40, 311.36°)
OKLaboklab(20.84% 0.0441 -0.0783)
OKLCHoklch(20.84% 0.09 299.4)
XYZxyz(1.4154, 0.7704, 4.0763)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F083A #233A08
analogous
#080A3A #1F083A #38083A
triadic
#1F083A #3A1F08 #083A1F
tetradic
#1F083A #3A080A #233A08 #083A38
square
#1F083A #3A080A #233A08 #083A38
split-complementary
#1F083A #3A3808 #0A3A08
monochromatic
#0E041B #0E041B #1F083A #3C0F70 #5817A6

Accessibility & contrast

On white

18.20
#1F083A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F083A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F083A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F083A#FFFFFF#000000##FFFFFF
##1F083A1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f083a;
/* rgb */ color: rgb(31, 8, 58);
/* oklch */ color: oklch(20.8% 0.090 299.4);
Tailwind
colors: {
  custom: {
    50: '#5e4a71',
    500: '#1f083a',
    950: '#000000',
  },
}
SCSS
$custom: #1f083a;
$custom-light: #5e4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#1f083a",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 58
  },
  "hsl": {
    "h": 267.6,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20843,
    "c": 0.08986,
    "h": 299.4
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#1F083A
secondary
#527925
accent
#F2359B
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #1F083A

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

Preview Lab → · Contrast checker → · Palette generator →

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