#1C0F4F#1C0F4F

#1C0F4F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.109 H 283.6°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#1C0F4F
RGBrgb(28, 15, 79)
HSLhsl(252, 68%, 18%)
HSVhsv(252, 81%, 31%)
CMYKcmyk(64.6%, 81%, 0%, 69%)
CIE-LABlab(10.21, 26.47, -36.84)
CIE-LCHlch(10.21, 45.36, 305.69°)
OKLaboklab(23.76% 0.0257 -0.1061)
OKLCHoklch(23.76% 0.109 283.6)
XYZxyz(2.0606, 1.1529, 7.5096)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0F4F #424F0F
analogous
#0F224F #1C0F4F #3C0F4F
triadic
#1C0F4F #4F1C0F #0F4F1C
tetradic
#1C0F4F #4F0F22 #424F0F #0F4F3C
square
#1C0F4F #4F0F22 #424F0F #0F4F3C
split-complementary
#1C0F4F #4F3C0F #224F0F
monochromatic
#09051A #0A051C #1C0F4F #2E1982 #4023B6

Accessibility & contrast

On white

17.06
#1C0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1C0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0F4F
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0F4F#FFFFFF#000000##FFFFFF
##1C0F4F1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E51
Deuteranopia (green-blind)
#001A4E
Tritanopia (blue-blind)
#01212E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1c0f4f;
/* rgb */ color: rgb(28, 15, 79);
/* oklch */ color: oklch(23.8% 0.109 283.6);
Tailwind
colors: {
  custom: {
    50: '#604f81',
    500: '#1c0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #1c0f4f;
$custom-light: #604f81;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0f4f",
  "rgb": {
    "r": 28,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 252.188,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23758,
    "c": 0.10921,
    "h": 283.6
  },
  "luminance": 0.01153
}

Semantic roles & 50–950 ramp

primary
#1C0F4F
secondary
#778931
accent
#EB3DC8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1C0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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