#1F104B#1F104B

#1F104B is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.102 H 287.6°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#1F104B
RGBrgb(31, 16, 75)
HSLhsl(255, 65%, 18%)
HSVhsv(255, 79%, 29%)
CMYKcmyk(58.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(10.33, 24.99, -33.85)
CIE-LCHlch(10.33, 42.08, 306.44°)
OKLaboklab(23.8% 0.0309 -0.0973)
OKLCHoklch(23.8% 0.102 287.6)
XYZxyz(2.0200, 1.1698, 6.7746)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F104B #3C4B10
analogous
#101F4B #1F104B #3C104B
triadic
#1F104B #4B1F10 #104B1F
tetradic
#1F104B #4B101F #3C4B10 #104B3C
square
#1F104B #4B101F #3C4B10 #104B3C
split-complementary
#1F104B #4B3C10 #1F4B10
monochromatic
#0A0519 #0A0519 #1F104B #341B7D #4926B0

Accessibility & contrast

On white

17.02
#1F104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1F104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F104B
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F104B#FFFFFF#000000##FFFFFF
##1F104B1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#0E202C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1f104b;
/* rgb */ color: rgb(31, 16, 75);
/* oklch */ color: oklch(23.8% 0.102 287.6);
Tailwind
colors: {
  custom: {
    50: '#604f7e',
    500: '#1f104b',
    950: '#000000',
  },
}
SCSS
$custom: #1f104b;
$custom-light: #604f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f104b",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 255.254,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23799,
    "c": 0.10208,
    "h": 287.6
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#1F104B
secondary
#708532
accent
#E840BD
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1F104B

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

Preview Lab → · Contrast checker → · Palette generator →

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