#1C0C4E#1C0C4E

#1C0C4E is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.111 H 284.8°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#1C0C4E
RGBrgb(28, 12, 78)
HSLhsl(255, 73%, 18%)
HSVhsv(255, 85%, 31%)
CMYKcmyk(64.1%, 84.6%, 0%, 69.4%)
CIE-LABlab(9.48, 27.87, -37.34)
CIE-LCHlch(9.48, 46.59, 306.73°)
OKLaboklab(23.21% 0.0285 -0.1076)
OKLCHoklch(23.21% 0.111 284.8)
XYZxyz(1.9851, 1.0598, 7.3062)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C0C4E #3E4E0C
analogous
#0C1D4E #1C0C4E #3D0C4E
triadic
#1C0C4E #4E1C0C #0C4E1C
tetradic
#1C0C4E #4E0C1D #3E4E0C #0C4E3D
square
#1C0C4E #4E0C1D #3E4E0C #0C4E3D
split-complementary
#1C0C4E #4E3D0C #1D4E0C
monochromatic
#0A041B #0A041B #1C0C4E #2F1483 #421CB8

Accessibility & contrast

On white

17.33
#1C0C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1C0C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C0C4E
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C0C4E#FFFFFF#000000##FFFFFF
##1C0C4E1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C50
Deuteranopia (green-blind)
#00184D
Tritanopia (blue-blind)
#021F2D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1c0c4e;
/* rgb */ color: rgb(28, 12, 78);
/* oklch */ color: oklch(23.2% 0.111 284.8);
Tailwind
colors: {
  custom: {
    50: '#604d80',
    500: '#1c0c4e',
    950: '#000000',
  },
}
SCSS
$custom: #1c0c4e;
$custom-light: #604d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1c0c4e",
  "rgb": {
    "r": 28,
    "g": 12,
    "b": 78
  },
  "hsl": {
    "h": 254.545,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23214,
    "c": 0.11129,
    "h": 284.8
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#1C0C4E
secondary
#738A2C
accent
#F038C3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1C0C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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