#1F124B#1F124B

#1F124B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.099 H 286.9°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#1F124B
RGBrgb(31, 18, 75)
HSLhsl(254, 61%, 18%)
HSVhsv(254, 76%, 29%)
CMYKcmyk(58.7%, 76%, 0%, 70.6%)
CIE-LABlab(10.79, 23.73, -33.10)
CIE-LCHlch(10.79, 40.73, 305.63°)
OKLaboklab(24.13% 0.0288 -0.0951)
OKLCHoklch(24.13% 0.099 286.9)
XYZxyz(2.0510, 1.2318, 6.7849)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F124B #3E4B12
analogous
#12214B #1F124B #3B124B
triadic
#1F124B #4B1F12 #124B1F
tetradic
#1F124B #4B1221 #3E4B12 #124B3B
square
#1F124B #4B1221 #3E4B12 #124B3B
split-complementary
#1F124B #4B3B12 #214B12
monochromatic
#0A0619 #0B061A #1F124B #331E7C #482AAE

Accessibility & contrast

On white

16.85
#1F124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1F124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F124B
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F124B#FFFFFF#000000##FFFFFF
##1F124B1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#0D212C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f124b;
/* rgb */ color: rgb(31, 18, 75);
/* oklch */ color: oklch(24.1% 0.099 286.9);
Tailwind
colors: {
  custom: {
    50: '#60517e',
    500: '#1f124b',
    950: '#000000',
  },
}
SCSS
$custom: #1f124b;
$custom-light: #60517e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f124b",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 253.684,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24125,
    "c": 0.09937,
    "h": 286.9
  },
  "luminance": 0.01232
}

Semantic roles & 50–950 ramp

primary
#1F124B
secondary
#728435
accent
#E443C0
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F124B

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

Preview Lab → · Contrast checker → · Palette generator →

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