#1F063D#1F063D

#1F063D is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.097 H 298.1°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#1F063D
RGBrgb(31, 6, 61)
HSLhsl(267, 82%, 13%)
HSVhsv(267, 90%, 24%)
CMYKcmyk(49.2%, 90.2%, 0%, 76.1%)
CIE-LABlab(6.85, 26.14, -29.66)
CIE-LCHlch(6.85, 39.54, 311.39°)
OKLaboklab(20.86% 0.0455 -0.0852)
OKLCHoklch(20.86% 0.097 298.1)
XYZxyz(1.4723, 0.7585, 4.4828)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F063D #243D06
analogous
#06083D #1F063D #3A063D
triadic
#1F063D #3D1F06 #063D1F
tetradic
#1F063D #3D0608 #243D06 #063D3A
square
#1F063D #3D0608 #243D06 #063D3A
split-complementary
#1F063D #3D3A06 #083D06
monochromatic
#0E031C #0E031C #1F063D #3B0B75 #5811AC

Accessibility & contrast

On white

18.24
#1F063D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1F063D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F063D
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F063D#FFFFFF#000000##FFFFFF
##1F063D1.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153F
Deuteranopia (green-blind)
#00153C
Tritanopia (blue-blind)
#171521
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f063d;
/* rgb */ color: rgb(31, 6, 61);
/* oklch */ color: oklch(20.9% 0.097 298.1);
Tailwind
colors: {
  custom: {
    50: '#5f4973',
    500: '#1f063d',
    950: '#000000',
  },
}
SCSS
$custom: #1f063d;
$custom-light: #5f4973;
$custom-dark: #000000;
JSON
{
  "hex": "#1f063d",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 61
  },
  "hsl": {
    "h": 267.273,
    "s": 82.09,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20856,
    "c": 0.09662,
    "h": 298.1
  },
  "luminance": 0.00758
}

Semantic roles & 50–950 ramp

primary
#1F063D
secondary
#547D22
accent
#F82F9D
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F063D

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

Preview Lab → · Contrast checker → · Palette generator →

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