#1F103C#1F103C

#1F103C is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.3% C 0.080 H 294.7°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#1F103C
RGBrgb(31, 16, 60)
HSLhsl(260, 58%, 15%)
HSVhsv(260, 73%, 24%)
CMYKcmyk(48.3%, 73.3%, 0%, 76.5%)
CIE-LABlab(8.89, 19.93, -25.62)
CIE-LCHlch(8.89, 32.46, 307.88°)
OKLaboklab(22.32% 0.0336 -0.0731)
OKLCHoklch(22.32% 0.08 294.7)
XYZxyz(1.5658, 0.9881, 4.3823)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F103C #2D3C10
analogous
#10173C #1F103C #35103C
triadic
#1F103C #3C1F10 #103C1F
tetradic
#1F103C #3C1017 #2D3C10 #103C35
square
#1F103C #3C1017 #2D3C10 #103C35
split-complementary
#1F103C #3C3510 #173C10
monochromatic
#0C0618 #0C0618 #1F103C #381D6C #512A9D

Accessibility & contrast

On white

17.54
#1F103C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F103C
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F103C#FFFFFF#000000##FFFFFF
##1F103C1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3D
Deuteranopia (green-blind)
#00193B
Tritanopia (blue-blind)
#171A24
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1f103c;
/* rgb */ color: rgb(31, 16, 60);
/* oklch */ color: oklch(22.3% 0.080 294.7);
Tailwind
colors: {
  custom: {
    50: '#5e4f72',
    500: '#1f103c',
    950: '#000000',
  },
}
SCSS
$custom: #1f103c;
$custom-light: #5e4f72;
$custom-dark: #000000;
JSON
{
  "hex": "#1f103c",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 60
  },
  "hsl": {
    "h": 260.455,
    "s": 57.895,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22317,
    "c": 0.08047,
    "h": 294.7
  },
  "luminance": 0.00988
}

Semantic roles & 50–950 ramp

primary
#1F103C
secondary
#5F7632
accent
#E147AC
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040208
muted
#79787B

Preview Lab

Preview with #1F103C

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

Preview Lab → · Contrast checker → · Palette generator →

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