#1F083D#1F083D

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

Color values

HEX#1F083D
RGBrgb(31, 8, 61)
HSLhsl(266, 77%, 14%)
HSVhsv(266, 87%, 24%)
CMYKcmyk(49.2%, 86.9%, 0%, 76.1%)
CIE-LABlab(7.24, 25.06, -29.02)
CIE-LCHlch(7.24, 38.35, 310.81°)
OKLaboklab(21.15% 0.0431 -0.0832)
OKLCHoklch(21.15% 0.094 297.4)
XYZxyz(1.4940, 0.8019, 4.4900)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F083D #263D08
analogous
#080B3D #1F083D #39083D
triadic
#1F083D #3D1F08 #083D1F
tetradic
#1F083D #3D080B #263D08 #083D39
square
#1F083D #3D080B #263D08 #083D39
split-complementary
#1F083D #3D3908 #0B3D08
monochromatic
#0E041B #0E041B #1F083D #3A0F73 #5616A9

Accessibility & contrast

On white

18.10
#1F083D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F083D
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F083D#FFFFFF#000000##FFFFFF
##1F083D1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00163E
Deuteranopia (green-blind)
#00153C
Tritanopia (blue-blind)
#171622
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f083d;
/* rgb */ color: rgb(31, 8, 61);
/* oklch */ color: oklch(21.2% 0.094 297.4);
Tailwind
colors: {
  custom: {
    50: '#5f4a73',
    500: '#1f083d',
    950: '#000000',
  },
}
SCSS
$custom: #1f083d;
$custom-light: #5f4a73;
$custom-dark: #000000;
JSON
{
  "hex": "#1f083d",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 61
  },
  "hsl": {
    "h": 266.038,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21154,
    "c": 0.09371,
    "h": 297.4
  },
  "luminance": 0.00802
}

Semantic roles & 50–950 ramp

primary
#1F083D
secondary
#567C25
accent
#F334A1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F083D

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

Preview Lab → · Contrast checker → · Palette generator →

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