#1F023B#1F023B

#1F023B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 20.0% C 0.101 H 300.8°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#1F023B
RGBrgb(31, 2, 59)
HSLhsl(271, 93%, 12%)
HSVhsv(271, 97%, 23%)
CMYKcmyk(47.5%, 96.6%, 0%, 76.9%)
CIE-LABlab(5.88, 27.57, -29.80)
CIE-LCHlch(5.88, 40.60, 312.77°)
OKLaboklab(20% 0.0516 -0.0864)
OKLCHoklch(20% 0.101 300.8)
XYZxyz(1.3760, 0.6505, 4.1899)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F023B #1E3B02
analogous
#02023B #1F023B #3B023B
triadic
#1F023B #3B1F02 #023B1F
tetradic
#1F023B #3B0202 #1E3B02 #023B3B
square
#1F023B #3B0202 #1E3B02 #023B3B
split-complementary
#1F023B #3B3B02 #023B02
monochromatic
#10011E #10011E #1F023B #3E0476 #5D06B1

Accessibility & contrast

On white

18.58
#1F023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1F023B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F023B
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F023B#FFFFFF#000000##FFFFFF
##1F023B1.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133D
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#18121F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1f023b;
/* rgb */ color: rgb(31, 2, 59);
/* oklch */ color: oklch(20.0% 0.101 300.8);
Tailwind
colors: {
  custom: {
    50: '#5f4771',
    500: '#1f023b',
    950: '#000000',
  },
}
SCSS
$custom: #1f023b;
$custom-light: #5f4771;
$custom-dark: #000000;
JSON
{
  "hex": "#1f023b",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 270.526,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20004,
    "c": 0.10062,
    "h": 300.8
  },
  "luminance": 0.0065
}

Semantic roles & 50–950 ramp

primary
#1F023B
secondary
#4C7E1A
accent
#FF2992
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#050008
muted
#79777B

Preview Lab

Preview with #1F023B

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

Preview Lab → · Contrast checker → · Palette generator →

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