#1F1163#1F1163

#1F1163 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.133 H 280.1°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#1F1163
RGBrgb(31, 17, 99)
HSLhsl(250, 71%, 23%)
HSVhsv(250, 83%, 39%)
CMYKcmyk(68.7%, 82.8%, 0%, 61.2%)
CIE-LABlab(13.19, 32.51, -45.44)
CIE-LCHlch(13.19, 55.87, 305.58°)
OKLaboklab(26.61% 0.0234 -0.1312)
OKLCHoklch(26.61% 0.133 280.1)
XYZxyz(3.0169, 1.5928, 11.9504)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1163 #556311
analogous
#112C63 #1F1163 #481163
triadic
#1F1163 #631F11 #11631F
tetradic
#1F1163 #63112C #556311 #116348
square
#1F1163 #63112C #556311 #116348
split-complementary
#1F1163 #634811 #2C6311
monochromatic
#08041A #0F082F #1F1163 #2F1A97 #4023CB

Accessibility & contrast

On white

15.93
#1F1163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F1163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1163
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1163#FFFFFF#000000##FFFFFF
##1F11631.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002565
Deuteranopia (green-blind)
#001F62
Tritanopia (blue-blind)
#00293A
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f1163;
/* rgb */ color: rgb(31, 17, 99);
/* oklch */ color: oklch(26.6% 0.133 280.1);
Tailwind
colors: {
  custom: {
    50: '#665190',
    500: '#1f1163',
    950: '#000000',
  },
}
SCSS
$custom: #1f1163;
$custom-light: #665190;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1163",
  "rgb": {
    "r": 31,
    "g": 17,
    "b": 99
  },
  "hsl": {
    "h": 250.244,
    "s": 70.69,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26607,
    "c": 0.13322,
    "h": 280.1
  },
  "luminance": 0.01593
}

Semantic roles & 50–950 ramp

primary
#1F1163
secondary
#8A9B34
accent
#ED3ACF
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #1F1163

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

Preview Lab → · Contrast checker → · Palette generator →

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