#1F1063#1F1063

#1F1063 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.134 H 280.3°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#1F1063
RGBrgb(31, 16, 99)
HSLhsl(251, 72%, 23%)
HSVhsv(251, 84%, 39%)
CMYKcmyk(68.7%, 83.8%, 0%, 61.2%)
CIE-LABlab(13.00, 33.05, -45.74)
CIE-LCHlch(13.00, 56.43, 305.85°)
OKLaboklab(26.48% 0.024 -0.132)
OKLCHoklch(26.48% 0.134 280.3)
XYZxyz(3.0018, 1.5625, 11.9454)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1063 #546310
analogous
#102B63 #1F1063 #481063
triadic
#1F1063 #631F10 #10631F
tetradic
#1F1063 #63102B #546310 #106348
square
#1F1063 #63102B #546310 #106348
split-complementary
#1F1063 #634810 #2B6310
monochromatic
#08041A #0F072E #1F1063 #2F1998 #4021CC

Accessibility & contrast

On white

16.00
#1F1063 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#1F1063 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1063
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1063#FFFFFF#000000##FFFFFF
##1F10631.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002465
Deuteranopia (green-blind)
#001E62
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f1063;
/* rgb */ color: rgb(31, 16, 99);
/* oklch */ color: oklch(26.5% 0.134 280.3);
Tailwind
colors: {
  custom: {
    50: '#665190',
    500: '#1f1063',
    950: '#000000',
  },
}
SCSS
$custom: #1f1063;
$custom-light: #665190;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1063",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 99
  },
  "hsl": {
    "h": 250.843,
    "s": 72.174,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26477,
    "c": 0.1342,
    "h": 280.3
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#1F1063
secondary
#899C33
accent
#EF39CE
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #1F1063

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

Preview Lab → · Contrast checker → · Palette generator →

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