#1F124A#1F124A

#1F124A is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.098 H 287.2°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#1F124A
RGBrgb(31, 18, 74)
HSLhsl(254, 61%, 18%)
HSVhsv(254, 76%, 29%)
CMYKcmyk(58.1%, 75.7%, 0%, 71%)
CIE-LABlab(10.69, 23.38, -32.57)
CIE-LCHlch(10.69, 40.09, 305.67°)
OKLaboklab(24.02% 0.029 -0.0935)
OKLCHoklch(24.02% 0.098 287.2)
XYZxyz(2.0170, 1.2182, 6.6061)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F124A #3D4A12
analogous
#12214A #1F124A #3B124A
triadic
#1F124A #4A1F12 #124A1F
tetradic
#1F124A #4A1221 #3D4A12 #124A3B
square
#1F124A #4A1221 #3D4A12 #124A3B
split-complementary
#1F124A #4A3B12 #214A12
monochromatic
#0A0619 #0A0619 #1F124A #341E7B #482AAC

Accessibility & contrast

On white

16.89
#1F124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1F124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F124A
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F124A#FFFFFF#000000##FFFFFF
##1F124A1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#0E202C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f124a;
/* rgb */ color: rgb(31, 18, 74);
/* oklch */ color: oklch(24.0% 0.098 287.2);
Tailwind
colors: {
  custom: {
    50: '#60517d',
    500: '#1f124a',
    950: '#000000',
  },
}
SCSS
$custom: #1f124a;
$custom-light: #60517d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f124a",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 253.929,
    "s": 60.87,
    "l": 18.039
  },
  "oklch": {
    "l": 0.24024,
    "c": 0.09794,
    "h": 287.2
  },
  "luminance": 0.01218
}

Semantic roles & 50–950 ramp

primary
#1F124A
secondary
#718335
accent
#E444BF
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F124A

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

Preview Lab → · Contrast checker → · Palette generator →

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