#1F103F#1F103F

#1F103F is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.085 H 293.0°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#1F103F
RGBrgb(31, 16, 63)
HSLhsl(259, 59%, 15%)
HSVhsv(259, 75%, 25%)
CMYKcmyk(50.8%, 74.6%, 0%, 75.3%)
CIE-LABlab(9.16, 20.93, -27.33)
CIE-LCHlch(9.16, 34.42, 307.46°)
OKLaboklab(22.6% 0.0332 -0.0781)
OKLCHoklch(22.6% 0.085 293)
XYZxyz(1.6473, 1.0207, 4.8119)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F103F #303F10
analogous
#10183F #1F103F #36103F
triadic
#1F103F #3F1F10 #103F1F
tetradic
#1F103F #3F1018 #303F10 #103F36
square
#1F103F #3F1018 #303F10 #103F36
split-complementary
#1F103F #3F3610 #183F10
monochromatic
#0C0618 #0C0618 #1F103F #371C70 #4F29A1

Accessibility & contrast

On white

17.44
#1F103F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1F103F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F103F
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F103F#FFFFFF#000000##FFFFFF
##1F103F1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#161B25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1f103f;
/* rgb */ color: rgb(31, 16, 63);
/* oklch */ color: oklch(22.6% 0.085 293.0);
Tailwind
colors: {
  custom: {
    50: '#5e4f74',
    500: '#1f103f',
    950: '#000000',
  },
}
SCSS
$custom: #1f103f;
$custom-light: #5e4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f103f",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 63
  },
  "hsl": {
    "h": 259.149,
    "s": 59.494,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22598,
    "c": 0.0849,
    "h": 293
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#1F103F
secondary
#627932
accent
#E345B0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #1F103F

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

Preview Lab → · Contrast checker → · Palette generator →

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