#1C2158#1C2158

#1C2158 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.098 H 274.3°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#1C2158
RGBrgb(28, 33, 88)
HSLhsl(235, 52%, 23%)
HSVhsv(235, 68%, 35%)
CMYKcmyk(68.2%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.69, 17.52, -34.00)
CIE-LCHlch(15.69, 38.25, 297.27°)
OKLaboklab(28.01% 0.0073 -0.0978)
OKLCHoklch(28.01% 0.098 274.3)
XYZxyz(2.7836, 2.0389, 9.4775)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C2158 #58531C
analogous
#1C3F58 #1C2158 #351C58
triadic
#1C2158 #581C21 #21581C
tetradic
#1C2158 #581C3F #58531C #1C5835
square
#1C2158 #581C3F #58531C #1C5835
split-complementary
#1C2158 #58351C #3F581C
monochromatic
#070917 #0D102A #1C2158 #2B3286 #3A44B5

Accessibility & contrast

On white

14.92
#1C2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1C2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C2158
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C2158#FFFFFF#000000##FFFFFF
##1C21581.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1c2158;
/* rgb */ color: rgb(28, 33, 88);
/* oklch */ color: oklch(28.0% 0.098 274.3);
Tailwind
colors: {
  custom: {
    50: '#605c88',
    500: '#1c2158',
    950: '#000000',
  },
}
SCSS
$custom: #1c2158;
$custom-light: #605c88;
$custom-dark: #000000;
JSON
{
  "hex": "#1c2158",
  "rgb": {
    "r": 28,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 235,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28012,
    "c": 0.09803,
    "h": 274.3
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#1C2158
secondary
#8E8742
accent
#CF4DDB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #1C2158

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

Preview Lab → · Contrast checker → · Palette generator →

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