#1F124F#1F124F

#1F124F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.105 H 285.5°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#1F124F
RGBrgb(31, 18, 79)
HSLhsl(253, 63%, 19%)
HSVhsv(253, 77%, 31%)
CMYKcmyk(60.8%, 77.2%, 0%, 69%)
CIE-LABlab(11.19, 25.11, -35.20)
CIE-LCHlch(11.19, 43.24, 305.50°)
OKLaboklab(24.54% 0.028 -0.1013)
OKLCHoklch(24.54% 0.105 285.5)
XYZxyz(2.1922, 1.2883, 7.5288)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F124F #424F12
analogous
#12244F #1F124F #3E124F
triadic
#1F124F #4F1F12 #124F1F
tetradic
#1F124F #4F1224 #424F12 #124F3E
square
#1F124F #4F1224 #424F12 #124F3E
split-complementary
#1F124F #4F3E12 #244F12
monochromatic
#0A0619 #0B071D #1F124F #331D81 #4629B3

Accessibility & contrast

On white

16.70
#1F124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1F124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F124F
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F124F#FFFFFF#000000##FFFFFF
##1F124F1.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#09222F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1f124f;
/* rgb */ color: rgb(31, 18, 79);
/* oklch */ color: oklch(24.5% 0.105 285.5);
Tailwind
colors: {
  custom: {
    50: '#615181',
    500: '#1f124f',
    950: '#000000',
  },
}
SCSS
$custom: #1f124f;
$custom-light: #615181;
$custom-dark: #000000;
JSON
{
  "hex": "#1f124f",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 252.787,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.24538,
    "c": 0.10507,
    "h": 285.5
  },
  "luminance": 0.01288
}

Semantic roles & 50–950 ramp

primary
#1F124F
secondary
#768835
accent
#E642C3
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F124F

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

Preview Lab → · Contrast checker → · Palette generator →

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