#1F024A#1F024A

#1F024A is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.8% C 0.117 H 292.0°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#1F024A
RGBrgb(31, 2, 74)
HSLhsl(264, 95%, 15%)
HSVhsv(264, 97%, 29%)
CMYKcmyk(58.1%, 97.3%, 0%, 71%)
CIE-LABlab(7.49, 32.58, -37.83)
CIE-LCHlch(7.49, 49.93, 310.74°)
OKLaboklab(21.79% 0.0439 -0.1088)
OKLCHoklch(21.79% 0.117 292)
XYZxyz(1.8225, 0.8291, 6.5412)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F024A #2D4A02
analogous
#02094A #1F024A #43024A
triadic
#1F024A #4A1F02 #024A1F
tetradic
#1F024A #4A0209 #2D4A02 #024A43
square
#1F024A #4A0209 #2D4A02 #024A43
split-complementary
#1F024A #4A4302 #094A02
monochromatic
#0C011E #0C011E #1F024A #380486 #5105C1

Accessibility & contrast

On white

18.01
#1F024A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1F024A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F024A
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F024A#FFFFFF#000000##FFFFFF
##1F024A1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00174C
Deuteranopia (green-blind)
#001549
Tritanopia (blue-blind)
#0F1928
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f024a;
/* rgb */ color: rgb(31, 2, 74);
/* oklch */ color: oklch(21.8% 0.117 292.0);
Tailwind
colors: {
  custom: {
    50: '#62477d',
    500: '#1f024a',
    950: '#000000',
  },
}
SCSS
$custom: #1f024a;
$custom-light: #62477d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f024a",
  "rgb": {
    "r": 31,
    "g": 2,
    "b": 74
  },
  "hsl": {
    "h": 264.167,
    "s": 94.737,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21785,
    "c": 0.11731,
    "h": 292
  },
  "luminance": 0.00829
}

Semantic roles & 50–950 ramp

primary
#1F024A
secondary
#5F8C1C
accent
#FF29A9
background
#F6F4F7
surface
#EBE6EE
border
#C6C2C9
text
#06000A
muted
#7A777C

Preview Lab

Preview with #1F024A

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

Preview Lab → · Contrast checker → · Palette generator →

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