#1F083E#1F083E

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

Color values

HEX#1F083E
RGBrgb(31, 8, 62)
HSLhsl(266, 77%, 14%)
HSVhsv(266, 87%, 24%)
CMYKcmyk(50%, 87.1%, 0%, 75.7%)
CIE-LABlab(7.34, 25.40, -29.58)
CIE-LCHlch(7.34, 38.99, 310.65°)
OKLaboklab(21.26% 0.0428 -0.0848)
OKLCHoklch(21.26% 0.095 296.8)
XYZxyz(1.5212, 0.8127, 4.6332)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F083E #273E08
analogous
#080C3E #1F083E #3A083E
triadic
#1F083E #3E1F08 #083E1F
tetradic
#1F083E #3E080C #273E08 #083E3A
square
#1F083E #3E080C #273E08 #083E3A
split-complementary
#1F083E #3E3A08 #0C3E08
monochromatic
#0E031B #0E031B #1F083E #3A0F74 #5516AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F083E#FFFFFF#000000##FFFFFF
##1F083E1.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)
#001640
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#171722
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f083e;
/* rgb */ color: rgb(31, 8, 62);
/* oklch */ color: oklch(21.3% 0.095 296.8);
Tailwind
colors: {
  custom: {
    50: '#5f4a74',
    500: '#1f083e',
    950: '#000000',
  },
}
SCSS
$custom: #1f083e;
$custom-light: #5f4a74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f083e",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 62
  },
  "hsl": {
    "h": 265.556,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21259,
    "c": 0.095,
    "h": 296.8
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#1F083E
secondary
#577D25
accent
#F434A2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F083E

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

Preview Lab → · Contrast checker → · Palette generator →

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