#1C158C#1C158C

#1C158C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.182 H 271.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#1C158C
RGBrgb(28, 21, 140)
HSLhsl(244, 74%, 32%)
HSVhsv(244, 85%, 55%)
CMYKcmyk(80%, 85%, 0%, 45.1%)
CIE-LABlab(18.70, 43.59, -62.70)
CIE-LCHlch(18.70, 76.37, 304.81°)
OKLaboklab(31.84% 0.0057 -0.1814)
OKLCHoklch(31.84% 0.182 271.8)
XYZxyz(5.4791, 2.6761, 25.0336)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C158C #858C15
analogous
#154A8C #1C158C #58158C
triadic
#1C158C #8C1C15 #158C1C
tetradic
#1C158C #8C154A #858C15 #158C58
square
#1C158C #8C154A #858C15 #158C58
split-complementary
#1C158C #8C5815 #4A8C15
monochromatic
#070522 #110D57 #1C158C #271DC1 #443AE1

Accessibility & contrast

On white

13.68
#1C158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1C158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C158C
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C158C#FFFFFF#000000##FFFFFF
##1C158C1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00278A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1c158c;
/* rgb */ color: rgb(28, 21, 140);
/* oklch */ color: oklch(31.8% 0.182 271.8);
Tailwind
colors: {
  custom: {
    50: '#6f57af',
    500: '#1c158c',
    950: '#000000',
  },
}
SCSS
$custom: #1c158c;
$custom-light: #6f57af;
$custom-dark: #000000;
JSON
{
  "hex": "#1c158c",
  "rgb": {
    "r": 28,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 243.529,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31838,
    "c": 0.18151,
    "h": 271.8
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#1C158C
secondary
#B8C03D
accent
#F137E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1C158C

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

Preview Lab → · Contrast checker → · Palette generator →

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