#1F114E#1F114E

#1F114E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.3% C 0.105 H 286.2°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#1F114E
RGBrgb(31, 17, 78)
HSLhsl(254, 64%, 19%)
HSVhsv(254, 78%, 31%)
CMYKcmyk(60.3%, 78.2%, 0%, 69.4%)
CIE-LABlab(10.86, 25.40, -35.05)
CIE-LCHlch(10.86, 43.29, 305.93°)
OKLaboklab(24.27% 0.0292 -0.1008)
OKLCHoklch(24.27% 0.105 286.2)
XYZxyz(2.1403, 1.2421, 7.3332)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F114E #404E11
analogous
#11214E #1F114E #3D114E
triadic
#1F114E #4E1F11 #114E1F
tetradic
#1F114E #4E1121 #404E11 #114E3D
square
#1F114E #4E1121 #404E11 #114E3D
split-complementary
#1F114E #4E3D11 #214E11
monochromatic
#0A0519 #0B061C #1F114E #331C80 #4727B2

Accessibility & contrast

On white

16.82
#1F114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F114E
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F114E#FFFFFF#000000##FFFFFF
##1F114E1.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#0A212E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1f114e;
/* rgb */ color: rgb(31, 17, 78);
/* oklch */ color: oklch(24.3% 0.105 286.2);
Tailwind
colors: {
  custom: {
    50: '#615080',
    500: '#1f114e',
    950: '#000000',
  },
}
SCSS
$custom: #1f114e;
$custom-light: #615080;
$custom-dark: #000000;
JSON
{
  "hex": "#1f114e",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 253.77,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24272,
    "c": 0.10496,
    "h": 286.2
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#1F114E
secondary
#748733
accent
#E741C1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#05020A
muted
#7A787C

Preview Lab

Preview with #1F114E

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

Preview Lab → · Contrast checker → · Palette generator →

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