#1C124D#1C124D

#1C124D is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.103 H 283.2°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#1C124D
RGBrgb(28, 18, 77)
HSLhsl(250, 62%, 19%)
HSVhsv(250, 77%, 30%)
CMYKcmyk(63.6%, 76.6%, 0%, 69.8%)
CIE-LABlab(10.67, 23.87, -34.70)
CIE-LCHlch(10.67, 42.11, 304.53°)
OKLaboklab(24.02% 0.0235 -0.0999)
OKLCHoklch(24.02% 0.103 283.2)
XYZxyz(2.0343, 1.2152, 7.1471)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C124D #434D12
analogous
#12254D #1C124D #39124D
triadic
#1C124D #4D1C12 #124D1C
tetradic
#1C124D #4D1225 #434D12 #124D39
square
#1C124D #4D1225 #434D12 #124D39
split-complementary
#1C124D #4D3912 #254D12
monochromatic
#090619 #0A061B #1C124D #2E1E7F #4029B0

Accessibility & contrast

On white

16.89
#1C124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#1C124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C124D
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C124D#FFFFFF#000000##FFFFFF
##1C124D1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4F
Deuteranopia (green-blind)
#001B4C
Tritanopia (blue-blind)
#03222E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1c124d;
/* rgb */ color: rgb(28, 18, 77);
/* oklch */ color: oklch(24.0% 0.103 283.2);
Tailwind
colors: {
  custom: {
    50: '#5f517f',
    500: '#1c124d',
    950: '#000000',
  },
}
SCSS
$custom: #1c124d;
$custom-light: #5f517f;
$custom-dark: #000000;
JSON
{
  "hex": "#1c124d",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 250.169,
    "s": 62.105,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24022,
    "c": 0.10262,
    "h": 283.2
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#1C124D
secondary
#788635
accent
#E543CA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1C124D

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

Preview Lab → · Contrast checker → · Palette generator →

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