#1C124E#1C124E

#1C124E is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.104 H 282.9°. Best body text is #FFFFFF at 16.85:1 contrast (WCAG AA passes).

Color values

HEX#1C124E
RGBrgb(28, 18, 78)
HSLhsl(250, 63%, 19%)
HSVhsv(250, 77%, 31%)
CMYKcmyk(64.1%, 76.9%, 0%, 69.4%)
CIE-LABlab(10.77, 24.23, -35.22)
CIE-LCHlch(10.77, 42.75, 304.53°)
OKLaboklab(24.13% 0.0233 -0.1014)
OKLCHoklch(24.13% 0.104 282.9)
XYZxyz(2.0699, 1.2294, 7.3345)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C124E #444E12
analogous
#12264E #1C124E #3A124E
triadic
#1C124E #4E1C12 #124E1C
tetradic
#1C124E #4E1226 #444E12 #124E3A
square
#1C124E #4E1226 #444E12 #124E3A
split-complementary
#1C124E #4E3A12 #264E12
monochromatic
#090619 #0A071C #1C124E #2E1D80 #4029B1

Accessibility & contrast

On white

16.85
#1C124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#1C124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C124E
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C124E#FFFFFF#000000##FFFFFF
##1C124E1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#001B4D
Tritanopia (blue-blind)
#02222E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #1c124e;
/* rgb */ color: rgb(28, 18, 78);
/* oklch */ color: oklch(24.1% 0.104 282.9);
Tailwind
colors: {
  custom: {
    50: '#5f5180',
    500: '#1c124e',
    950: '#000000',
  },
}
SCSS
$custom: #1c124e;
$custom-light: #5f5180;
$custom-dark: #000000;
JSON
{
  "hex": "#1c124e",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 250,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.24128,
    "c": 0.10405,
    "h": 282.9
  },
  "luminance": 0.0123
}

Semantic roles & 50–950 ramp

primary
#1C124E
secondary
#798735
accent
#E642CA
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1C124E

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

Preview Lab → · Contrast checker → · Palette generator →

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