#1F063C#1F063C

#1F063C is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.095 H 298.8°. Best body text is #FFFFFF at 18.27:1 contrast (WCAG AA passes).

Color values

HEX#1F063C
RGBrgb(31, 6, 60)
HSLhsl(268, 82%, 13%)
HSVhsv(268, 90%, 24%)
CMYKcmyk(48.3%, 90%, 0%, 76.5%)
CIE-LABlab(6.75, 25.80, -29.10)
CIE-LCHlch(6.75, 38.89, 311.56°)
OKLaboklab(20.75% 0.0459 -0.0836)
OKLCHoklch(20.75% 0.095 298.8)
XYZxyz(1.4456, 0.7478, 4.3423)
Luminance0.0075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F063C #233C06
analogous
#06083C #1F063C #3A063C
triadic
#1F063C #3C1F06 #063C1F
tetradic
#1F063C #3C0608 #233C06 #063C3A
square
#1F063C #3C0608 #233C06 #063C3A
split-complementary
#1F063C #3C3A06 #083C06
monochromatic
#0E031C #0E031C #1F063C #3C0C74 #5811AB

Accessibility & contrast

On white

18.27
#1F063C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F063C
18.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F063C#FFFFFF#000000##FFFFFF
##1F063C1.0018.271.1518.27
#FFFFFF18.271.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153D
Deuteranopia (green-blind)
#00143B
Tritanopia (blue-blind)
#181521
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1f063c;
/* rgb */ color: rgb(31, 6, 60);
/* oklch */ color: oklch(20.7% 0.095 298.8);
Tailwind
colors: {
  custom: {
    50: '#5f4972',
    500: '#1f063c',
    950: '#000000',
  },
}
SCSS
$custom: #1f063c;
$custom-light: #5f4972;
$custom-dark: #000000;
JSON
{
  "hex": "#1f063c",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 60
  },
  "hsl": {
    "h": 267.778,
    "s": 81.818,
    "l": 12.941
  },
  "oklch": {
    "l": 0.20748,
    "c": 0.09538,
    "h": 298.8
  },
  "luminance": 0.00748
}

Semantic roles & 50–950 ramp

primary
#1F063C
secondary
#527C22
accent
#F8309B
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F063C

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

Preview Lab → · Contrast checker → · Palette generator →

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