#1F083B#1F083B

#1F083B is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.091 H 298.7°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#1F083B
RGBrgb(31, 8, 59)
HSLhsl(267, 76%, 13%)
HSVhsv(267, 86%, 23%)
CMYKcmyk(47.5%, 86.4%, 0%, 76.9%)
CIE-LABlab(7.05, 24.39, -27.89)
CIE-LCHlch(7.05, 37.05, 311.17°)
OKLaboklab(20.95% 0.0438 -0.0799)
OKLCHoklch(20.95% 0.091 298.7)
XYZxyz(1.4411, 0.7807, 4.2116)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F083B #243B08
analogous
#080A3B #1F083B #38083B
triadic
#1F083B #3B1F08 #083B1F
tetradic
#1F083B #3B080A #243B08 #083B38
square
#1F083B #3B080A #243B08 #083B38
split-complementary
#1F083B #3B3808 #0A3B08
monochromatic
#0E041B #0E041B #1F083B #3B0F71 #5817A7

Accessibility & contrast

On white

18.16
#1F083B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F083B
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F083B#FFFFFF#000000##FFFFFF
##1F083B1.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f083b;
/* rgb */ color: rgb(31, 8, 59);
/* oklch */ color: oklch(20.9% 0.091 298.7);
Tailwind
colors: {
  custom: {
    50: '#5e4a71',
    500: '#1f083b',
    950: '#000000',
  },
}
SCSS
$custom: #1f083b;
$custom-light: #5e4a71;
$custom-dark: #000000;
JSON
{
  "hex": "#1f083b",
  "rgb": {
    "r": 31,
    "g": 8,
    "b": 59
  },
  "hsl": {
    "h": 267.059,
    "s": 76.119,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20946,
    "c": 0.09114,
    "h": 298.7
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#1F083B
secondary
#547A25
accent
#F3359D
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #1F083B

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

Preview Lab → · Contrast checker → · Palette generator →

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