#1F0F6E#1F0F6E

#1F0F6E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.149 H 278.0°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#1F0F6E
RGBrgb(31, 15, 110)
HSLhsl(250, 76%, 25%)
HSVhsv(250, 86%, 43%)
CMYKcmyk(71.8%, 86.4%, 0%, 56.9%)
CIE-LABlab(14.16, 37.11, -51.06)
CIE-LCHlch(14.16, 63.12, 306.01°)
OKLaboklab(27.68% 0.0209 -0.1475)
OKLCHoklch(27.68% 0.149 278)
XYZxyz(3.5495, 1.7584, 14.9012)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F0F6E #5E6E0F
analogous
#0F2F6E #1F0F6E #4F0F6E
triadic
#1F0F6E #6E1F0F #0F6E1F
tetradic
#1F0F6E #6E0F2F #5E6E0F #0F6E4F
square
#1F0F6E #6E0F2F #5E6E0F #0F6E4F
split-complementary
#1F0F6E #6E4F0F #2F6E0F
monochromatic
#08041B #100838 #1F0F6E #2E16A4 #3D1EDA

Accessibility & contrast

On white

15.53
#1F0F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1F0F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F0F6E
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F0F6E#FFFFFF#000000##FFFFFF
##1F0F6E1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#00206C
Tritanopia (blue-blind)
#002D40
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1f0f6e;
/* rgb */ color: rgb(31, 15, 110);
/* oklch */ color: oklch(27.7% 0.149 278.0);
Tailwind
colors: {
  custom: {
    50: '#695199',
    500: '#1f0f6e',
    950: '#000000',
  },
}
SCSS
$custom: #1f0f6e;
$custom-light: #695199;
$custom-dark: #000000;
JSON
{
  "hex": "#1f0f6e",
  "rgb": {
    "r": 31,
    "g": 15,
    "b": 110
  },
  "hsl": {
    "h": 250.105,
    "s": 76,
    "l": 24.51
  },
  "oklch": {
    "l": 0.27676,
    "c": 0.14896,
    "h": 278
  },
  "luminance": 0.01759
}

Semantic roles & 50–950 ramp

primary
#1F0F6E
secondary
#93A633
accent
#F335D3
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F0F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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