#1C157E#1C157E

#1C157E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.165 H 273.2°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#1C157E
RGBrgb(28, 21, 126)
HSLhsl(244, 71%, 29%)
HSVhsv(244, 83%, 49%)
CMYKcmyk(77.8%, 83.3%, 0%, 50.6%)
CIE-LABlab(16.94, 39.07, -56.79)
CIE-LCHlch(16.94, 68.93, 304.53°)
OKLaboklab(30.11% 0.0093 -0.1643)
OKLCHoklch(30.11% 0.165 273.2)
XYZxyz(4.5117, 2.2891, 19.9387)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C157E #777E15
analogous
#15437E #1C157E #51157E
triadic
#1C157E #7E1C15 #157E1C
tetradic
#1C157E #7E1543 #777E15 #157E51
square
#1C157E #7E1543 #777E15 #157E51
split-complementary
#1C157E #7E5115 #437E15
monochromatic
#06041A #100C4A #1C157E #281EB2 #3C31DD

Accessibility & contrast

On white

14.40
#1C157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1C157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C157E
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C157E#FFFFFF#000000##FFFFFF
##1C157E1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1c157e;
/* rgb */ color: rgb(28, 21, 126);
/* oklch */ color: oklch(30.1% 0.165 273.2);
Tailwind
colors: {
  custom: {
    50: '#6b55a5',
    500: '#1c157e',
    950: '#000000',
  },
}
SCSS
$custom: #1c157e;
$custom-light: #6b55a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c157e",
  "rgb": {
    "r": 28,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 244,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30112,
    "c": 0.16454,
    "h": 273.2
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#1C157E
secondary
#ABB33C
accent
#EE3AE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1C157E

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

Preview Lab → · Contrast checker → · Palette generator →

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