#1F103E#1F103E

#1F103E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.083 H 293.6°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#1F103E
RGBrgb(31, 16, 62)
HSLhsl(260, 59%, 15%)
HSVhsv(260, 74%, 24%)
CMYKcmyk(50%, 74.2%, 0%, 75.7%)
CIE-LABlab(9.07, 20.60, -26.76)
CIE-LCHlch(9.07, 33.77, 307.59°)
OKLaboklab(22.5% 0.0334 -0.0765)
OKLCHoklch(22.5% 0.083 293.6)
XYZxyz(1.6196, 1.0096, 4.6660)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F103E #2F3E10
analogous
#10183E #1F103E #36103E
triadic
#1F103E #3E1F10 #103E1F
tetradic
#1F103E #3E1018 #2F3E10 #103E36
square
#1F103E #3E1018 #2F3E10 #103E36
split-complementary
#1F103E #3E3610 #183E10
monochromatic
#0C0618 #0C0618 #1F103E #371D6F #50299F

Accessibility & contrast

On white

17.47
#1F103E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F103E
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F103E#FFFFFF#000000##FFFFFF
##1F103E1.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f103e;
/* rgb */ color: rgb(31, 16, 62);
/* oklch */ color: oklch(22.5% 0.083 293.6);
Tailwind
colors: {
  custom: {
    50: '#5e4f74',
    500: '#1f103e',
    950: '#000000',
  },
}
SCSS
$custom: #1f103e;
$custom-light: #5e4f74;
$custom-dark: #000000;
JSON
{
  "hex": "#1f103e",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 62
  },
  "hsl": {
    "h": 259.565,
    "s": 58.974,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22504,
    "c": 0.08343,
    "h": 293.6
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#1F103E
secondary
#617832
accent
#E246AF
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #1F103E

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

Preview Lab → · Contrast checker → · Palette generator →

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