#1F063F#1F063F

#1F063F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.099 H 296.9°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#1F063F
RGBrgb(31, 6, 63)
HSLhsl(266, 83%, 14%)
HSVhsv(266, 90%, 25%)
CMYKcmyk(50.8%, 90.5%, 0%, 75.3%)
CIE-LABlab(7.05, 26.82, -30.77)
CIE-LCHlch(7.05, 40.82, 311.07°)
OKLaboklab(21.07% 0.0448 -0.0884)
OKLCHoklch(21.07% 0.099 296.9)
XYZxyz(1.5272, 0.7804, 4.7718)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F063F #263F06
analogous
#06093F #1F063F #3B063F
triadic
#1F063F #3F1F06 #063F1F
tetradic
#1F063F #3F0609 #263F06 #063F3B
square
#1F063F #3F0609 #263F06 #063F3B
split-complementary
#1F063F #3F3B06 #093F06
monochromatic
#0E031C #0E031C #1F063F #3A0B77 #5611AF

Accessibility & contrast

On white

18.17
#1F063F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1F063F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F063F
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F063F#FFFFFF#000000##FFFFFF
##1F063F1.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001641
Deuteranopia (green-blind)
#00153E
Tritanopia (blue-blind)
#161623
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1f063f;
/* rgb */ color: rgb(31, 6, 63);
/* oklch */ color: oklch(21.1% 0.099 296.9);
Tailwind
colors: {
  custom: {
    50: '#5f4975',
    500: '#1f063f',
    950: '#000000',
  },
}
SCSS
$custom: #1f063f;
$custom-light: #5f4975;
$custom-dark: #000000;
JSON
{
  "hex": "#1f063f",
  "rgb": {
    "r": 31,
    "g": 6,
    "b": 63
  },
  "hsl": {
    "h": 266.316,
    "s": 82.609,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21074,
    "c": 0.09907,
    "h": 296.9
  },
  "luminance": 0.0078
}

Semantic roles & 50–950 ramp

primary
#1F063F
secondary
#567F22
accent
#F92FA0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1F063F

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

Preview Lab → · Contrast checker → · Palette generator →

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