#1F1068#1F1068

#1F1068 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.141 H 279.1°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#1F1068
RGBrgb(31, 16, 104)
HSLhsl(250, 73%, 24%)
HSVhsv(250, 85%, 41%)
CMYKcmyk(70.2%, 84.6%, 0%, 59.2%)
CIE-LABlab(13.60, 34.68, -48.06)
CIE-LCHlch(13.60, 59.27, 305.82°)
OKLaboklab(27.07% 0.0223 -0.1388)
OKLCHoklch(27.07% 0.141 279.1)
XYZxyz(3.2483, 1.6611, 13.2435)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1068 #596810
analogous
#102D68 #1F1068 #4B1068
triadic
#1F1068 #681F10 #10681F
tetradic
#1F1068 #68102D #596810 #10684B
square
#1F1068 #68102D #596810 #10684B
split-complementary
#1F1068 #684B10 #2D6810
monochromatic
#08041B #0F0833 #1F1068 #2F189D #3F20D2

Accessibility & contrast

On white

15.76
#1F1068 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F1068 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1068
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1068#FFFFFF#000000##FFFFFF
##1F10681.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266A
Deuteranopia (green-blind)
#001F66
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #1f1068;
/* rgb */ color: rgb(31, 16, 104);
/* oklch */ color: oklch(27.1% 0.141 279.1);
Tailwind
colors: {
  custom: {
    50: '#675194',
    500: '#1f1068',
    950: '#000000',
  },
}
SCSS
$custom: #1f1068;
$custom-light: #675194;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1068",
  "rgb": {
    "r": 31,
    "g": 16,
    "b": 104
  },
  "hsl": {
    "h": 250.227,
    "s": 73.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27069,
    "c": 0.14059,
    "h": 279.1
  },
  "luminance": 0.01661
}

Semantic roles & 50–950 ramp

primary
#1F1068
secondary
#8EA034
accent
#F038D1
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #1F1068

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

Preview Lab → · Contrast checker → · Palette generator →

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