#1F104C#1F104C

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

Color values

HEX#1F104C
RGBrgb(31, 16, 76)
HSLhsl(255, 65%, 18%)
HSVhsv(255, 79%, 30%)
CMYKcmyk(59.2%, 78.9%, 0%, 70.2%)
CIE-LABlab(10.44, 25.33, -34.37)
CIE-LCHlch(10.44, 42.70, 306.39°)
OKLaboklab(23.9% 0.0307 -0.0988)
OKLCHoklch(23.9% 0.103 287.2)
XYZxyz(2.0545, 1.1836, 6.9563)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F104C #3D4C10
analogous
#101F4C #1F104C #3D104C
triadic
#1F104C #4C1F10 #104C1F
tetradic
#1F104C #4C101F #3D4C10 #104C3D
square
#1F104C #4C101F #3D4C10 #104C3D
split-complementary
#1F104C #4C3D10 #1F4C10
monochromatic
#0A0519 #0A0519 #1F104C #341B7F #4825B1

Accessibility & contrast

On white

16.98
#1F104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F104C
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F104C#FFFFFF#000000##FFFFFF
##1F104C1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#0D202C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f104c;
/* rgb */ color: rgb(31, 16, 76);
/* oklch */ color: oklch(23.9% 0.103 287.2);
Tailwind
colors: {
  custom: {
    50: '#614f7f',
    500: '#1f104c',
    950: '#000000',
  },
}
SCSS
$custom: #1f104c;
$custom-light: #614f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f104c",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 255,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23904,
    "c": 0.10348,
    "h": 287.2
  },
  "luminance": 0.01184
}

Semantic roles & 50–950 ramp

primary
#1F104C
secondary
#718632
accent
#E840BE
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F104C

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

Preview Lab → · Contrast checker → · Palette generator →

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