#1F114F#1F114F

#1F114F is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.106 H 285.8°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#1F114F
RGBrgb(31, 17, 79)
HSLhsl(254, 65%, 19%)
HSVhsv(254, 78%, 31%)
CMYKcmyk(60.8%, 78.5%, 0%, 69%)
CIE-LABlab(10.97, 25.74, -35.57)
CIE-LCHlch(10.97, 43.91, 305.89°)
OKLaboklab(24.38% 0.029 -0.1023)
OKLCHoklch(24.38% 0.106 285.8)
XYZxyz(2.1764, 1.2566, 7.5235)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F114F #414F11
analogous
#11224F #1F114F #3E114F
triadic
#1F114F #4F1F11 #114F1F
tetradic
#1F114F #4F1122 #414F11 #114F3E
square
#1F114F #4F1122 #414F11 #114F3E
split-complementary
#1F114F #4F3E11 #224F11
monochromatic
#0A0519 #0B061D #1F114F #331C81 #4727B4

Accessibility & contrast

On white

16.78
#1F114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F114F
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F114F#FFFFFF#000000##FFFFFF
##1F114F1.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F51
Deuteranopia (green-blind)
#001C4E
Tritanopia (blue-blind)
#09222E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f114f;
/* rgb */ color: rgb(31, 17, 79);
/* oklch */ color: oklch(24.4% 0.106 285.8);
Tailwind
colors: {
  custom: {
    50: '#615081',
    500: '#1f114f',
    950: '#000000',
  },
}
SCSS
$custom: #1f114f;
$custom-light: #615081;
$custom-dark: #000000;
JSON
{
  "hex": "#1f114f",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 253.548,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24378,
    "c": 0.10636,
    "h": 285.8
  },
  "luminance": 0.01257
}

Semantic roles & 50–950 ramp

primary
#1F114F
secondary
#758833
accent
#E840C2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F114F

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

Preview Lab → · Contrast checker → · Palette generator →

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