#1C157C#1C157C

#1C157C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.162 H 273.5°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#1C157C
RGBrgb(28, 21, 124)
HSLhsl(244, 71%, 28%)
HSVhsv(244, 83%, 49%)
CMYKcmyk(77.4%, 83.1%, 0%, 51.4%)
CIE-LABlab(16.69, 38.41, -55.92)
CIE-LCHlch(16.69, 67.84, 304.48°)
OKLaboklab(29.87% 0.0098 -0.1618)
OKLCHoklch(29.87% 0.162 273.5)
XYZxyz(4.3839, 2.2380, 19.2658)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C157C #757C15
analogous
#15417C #1C157C #4F157C
triadic
#1C157C #7C1C15 #157C1C
tetradic
#1C157C #7C1541 #757C15 #157C4F
square
#1C157C #7C1541 #757C15 #157C4F
split-complementary
#1C157C #7C4F15 #417C15
monochromatic
#06041A #100C48 #1C157C #281EB0 #3B30DC

Accessibility & contrast

On white

14.51
#1C157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1C157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C157C
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C157C#FFFFFF#000000##FFFFFF
##1C157C1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1c157c;
/* rgb */ color: rgb(28, 21, 124);
/* oklch */ color: oklch(29.9% 0.162 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b55a3',
    500: '#1c157c',
    950: '#000000',
  },
}
SCSS
$custom: #1c157c;
$custom-light: #6b55a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1c157c",
  "rgb": {
    "r": 28,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 244.078,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29869,
    "c": 0.16207,
    "h": 273.5
  },
  "luminance": 0.02238
}

Semantic roles & 50–950 ramp

primary
#1C157C
secondary
#A9B13C
accent
#EE3AE2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1C157C

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

Preview Lab → · Contrast checker → · Palette generator →

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