#1F063A#1F063A

#1F063A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.093 H 300.1°. Best body text is #FFFFFF at 18.33:1 contrast (WCAG AA passes).

Color values

HEX#1F063A
RGBrgb(31, 6, 58)
HSLhsl(269, 81%, 13%)
HSVhsv(269, 90%, 23%)
CMYKcmyk(46.6%, 89.7%, 0%, 77.3%)
CIE-LABlab(6.57, 25.11, -27.96)
CIE-LCHlch(6.57, 37.58, 311.93°)
OKLaboklab(20.54% 0.0466 -0.0804)
OKLCHoklch(20.54% 0.093 300.1)
XYZxyz(1.3937, 0.7270, 4.0691)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F063A #213A06
analogous
#06073A #1F063A #39063A
triadic
#1F063A #3A1F06 #063A1F
tetradic
#1F063A #3A0607 #213A06 #063A39
square
#1F063A #3A0607 #213A06 #063A39
split-complementary
#1F063A #3A3906 #073A06
monochromatic
#0F031C #0F031C #1F063A #3D0C71 #5A11A9

Accessibility & contrast

On white

18.33
#1F063A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F063A
18.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F063A#FFFFFF#000000##FFFFFF
##1F063A1.0018.331.1518.33
#FFFFFF18.331.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143B
Deuteranopia (green-blind)
#001439
Tritanopia (blue-blind)
#191420
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f063a;
/* rgb */ color: rgb(31, 6, 58);
/* oklch */ color: oklch(20.5% 0.093 300.1);
Tailwind
colors: {
  custom: {
    50: '#5e4971',
    500: '#1f063a',
    950: '#000000',
  },
}
SCSS
$custom: #1f063a;
$custom-light: #5e4971;
$custom-dark: #000000;
JSON
{
  "hex": "#1f063a",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 58
  },
  "hsl": {
    "h": 268.846,
    "s": 81.25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20536,
    "c": 0.09292,
    "h": 300.1
  },
  "luminance": 0.00727
}

Semantic roles & 50–950 ramp

primary
#1F063A
secondary
#507A22
accent
#F83098
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #1F063A

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

Preview Lab → · Contrast checker → · Palette generator →

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