#1C124B#1C124B

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

Color values

HEX#1C124B
RGBrgb(28, 18, 75)
HSLhsl(251, 61%, 18%)
HSVhsv(251, 76%, 29%)
CMYKcmyk(62.7%, 76%, 0%, 70.6%)
CIE-LABlab(10.46, 23.15, -33.65)
CIE-LCHlch(10.46, 40.84, 304.53°)
OKLaboklab(23.81% 0.0239 -0.0968)
OKLCHoklch(23.81% 0.1 283.9)
XYZxyz(1.9648, 1.1874, 6.7809)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C124B #414B12
analogous
#12244B #1C124B #38124B
triadic
#1C124B #4B1C12 #124B1C
tetradic
#1C124B #4B1224 #414B12 #124B38
square
#1C124B #4B1224 #414B12 #124B38
split-complementary
#1C124B #4B3812 #244B12
monochromatic
#090619 #0A061A #1C124B #2E1E7C #412AAE

Accessibility & contrast

On white

16.97
#1C124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C124B
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C124B#FFFFFF#000000##FFFFFF
##1C124B1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4D
Deuteranopia (green-blind)
#001B4A
Tritanopia (blue-blind)
#05212C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1c124b;
/* rgb */ color: rgb(28, 18, 75);
/* oklch */ color: oklch(23.8% 0.100 283.9);
Tailwind
colors: {
  custom: {
    50: '#5f507e',
    500: '#1c124b',
    950: '#000000',
  },
}
SCSS
$custom: #1c124b;
$custom-light: #5f507e;
$custom-dark: #000000;
JSON
{
  "hex": "#1c124b",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 250.526,
    "s": 61.29,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23812,
    "c": 0.09972,
    "h": 283.9
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#1C124B
secondary
#768435
accent
#E443C8
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1C124B

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

Preview Lab → · Contrast checker → · Palette generator →

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