#1C0340#1C0340

#1C0340 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.104 H 293.9°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#1C0340
RGBrgb(28, 3, 64)
HSLhsl(265, 91%, 13%)
HSVhsv(265, 95%, 25%)
CMYKcmyk(56.2%, 95.3%, 0%, 74.9%)
CIE-LABlab(6.16, 28.10, -32.96)
CIE-LCHlch(6.16, 43.31, 310.45°)
OKLaboklab(20.31% 0.0422 -0.0954)
OKLCHoklch(20.31% 0.104 293.9)
XYZxyz(1.4366, 0.6821, 4.9055)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0340 #274003
analogous
#030840 #1C0340 #3A0340
triadic
#1C0340 #401C03 #03401C
tetradic
#1C0340 #400308 #274003 #03403A
square
#1C0340 #400308 #274003 #03403A
split-complementary
#1C0340 #403A03 #084003
monochromatic
#0D011D #0D011D #1C0340 #36067A #4F08B5

Accessibility & contrast

On white

18.48
#1C0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1C0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0340
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0340#FFFFFF#000000##FFFFFF
##1C03401.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#101522
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1c0340;
/* rgb */ color: rgb(28, 3, 64);
/* oklch */ color: oklch(20.3% 0.104 293.9);
Tailwind
colors: {
  custom: {
    50: '#5e4775',
    500: '#1c0340',
    950: '#000000',
  },
}
SCSS
$custom: #1c0340;
$custom-light: #5e4775;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0340",
  "rgb": {
    "r": 28,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 264.59,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20314,
    "c": 0.10436,
    "h": 293.9
  },
  "luminance": 0.00682
}

Semantic roles & 50–950 ramp

primary
#1C0340
secondary
#59821D
accent
#FF29A7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1C0340

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

Preview Lab → · Contrast checker → · Palette generator →

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