#1C052F#1C052F

#1C052F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.080 H 305.1°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#1C052F
RGBrgb(28, 5, 47)
HSLhsl(273, 81%, 10%)
HSVhsv(273, 89%, 18%)
CMYKcmyk(40.4%, 89.4%, 0%, 81.6%)
CIE-LABlab(5.06, 20.42, -22.30)
CIE-LCHlch(5.06, 30.24, 312.48°)
OKLaboklab(18.77% 0.0462 -0.0657)
OKLCHoklch(18.77% 0.08 305.1)
XYZxyz(1.0461, 0.5607, 2.7419)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C052F #182F05
analogous
#07052F #1C052F #2F052D
triadic
#1C052F #2F1C05 #052F1C
tetradic
#1C052F #2F0705 #182F05 #052D2F
square
#1C052F #2F0705 #182F05 #052D2F
split-complementary
#1C052F #2D2F05 #052F07
monochromatic
#10031C #10031C #1C052F #3D0B66 #5E119E

Accessibility & contrast

On white

18.88
#1C052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1C052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C052F
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C052F#FFFFFF#000000##FFFFFF
##1C052F1.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#180F19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1c052f;
/* rgb */ color: rgb(28, 5, 47);
/* oklch */ color: oklch(18.8% 0.080 305.1);
Tailwind
colors: {
  custom: {
    50: '#5a4868',
    500: '#1c052f',
    950: '#000000',
  },
}
SCSS
$custom: #1c052f;
$custom-light: #5a4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1c052f",
  "rgb": {
    "r": 28,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 272.857,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18775,
    "c": 0.08034,
    "h": 305.1
  },
  "luminance": 0.00561
}

Semantic roles & 50–950 ramp

primary
#1C052F
secondary
#44711F
accent
#F7318A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1C052F

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

Preview Lab → · Contrast checker → · Palette generator →

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