#1C124C#1C124C

#1C124C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.101 H 283.5°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#1C124C
RGBrgb(28, 18, 76)
HSLhsl(250, 62%, 18%)
HSVhsv(250, 76%, 30%)
CMYKcmyk(63.2%, 76.3%, 0%, 70.2%)
CIE-LABlab(10.57, 23.51, -34.17)
CIE-LCHlch(10.57, 41.48, 304.53°)
OKLaboklab(23.92% 0.0237 -0.0984)
OKLCHoklch(23.92% 0.101 283.5)
XYZxyz(1.9993, 1.2012, 6.9626)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C124C #424C12
analogous
#12254C #1C124C #39124C
triadic
#1C124C #4C1C12 #124C1C
tetradic
#1C124C #4C1225 #424C12 #124C39
square
#1C124C #4C1225 #424C12 #124C39
split-complementary
#1C124C #4C3912 #254C12
monochromatic
#090619 #0A061B #1C124C #2E1E7D #4029AF

Accessibility & contrast

On white

16.93
#1C124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C124C
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C124C#FFFFFF#000000##FFFFFF
##1C124C1.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4E
Deuteranopia (green-blind)
#001B4B
Tritanopia (blue-blind)
#04212D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1c124c;
/* rgb */ color: rgb(28, 18, 76);
/* oklch */ color: oklch(23.9% 0.101 283.5);
Tailwind
colors: {
  custom: {
    50: '#5f517f',
    500: '#1c124c',
    950: '#000000',
  },
}
SCSS
$custom: #1c124c;
$custom-light: #5f517f;
$custom-dark: #000000;
JSON
{
  "hex": "#1c124c",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 250.345,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23917,
    "c": 0.10117,
    "h": 283.5
  },
  "luminance": 0.01201
}

Semantic roles & 50–950 ramp

primary
#1C124C
secondary
#778535
accent
#E543C9
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1C124C

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

Preview Lab → · Contrast checker → · Palette generator →

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