#1C168B#1C168B

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

Color values

HEX#1C168B
RGBrgb(28, 22, 139)
HSLhsl(243, 73%, 32%)
HSVhsv(243, 84%, 55%)
CMYKcmyk(79.9%, 84.2%, 0%, 45.5%)
CIE-LABlab(18.73, 42.80, -62.02)
CIE-LCHlch(18.73, 75.35, 304.61°)
OKLaboklab(31.83% 0.0057 -0.1794)
OKLCHoklch(31.83% 0.18 271.8)
XYZxyz(5.4244, 2.6842, 24.6533)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C168B #858B16
analogous
#164B8B #1C168B #57168B
triadic
#1C168B #8B1C16 #168B1C
tetradic
#1C168B #8B164B #858B16 #168B57
square
#1C168B #8B164B #858B16 #168B57
split-complementary
#1C168B #8B5716 #4B8B16
monochromatic
#070521 #110E56 #1C168B #271EC0 #443BE0

Accessibility & contrast

On white

13.66
#1C168B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C168B
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C168B#FFFFFF#000000##FFFFFF
##1C168B1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002889
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1c168b;
/* rgb */ color: rgb(28, 22, 139);
/* oklch */ color: oklch(31.8% 0.180 271.8);
Tailwind
colors: {
  custom: {
    50: '#6e57ae',
    500: '#1c168b',
    950: '#000000',
  },
}
SCSS
$custom: #1c168b;
$custom-light: #6e57ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1c168b",
  "rgb": {
    "r": 28,
    "g": 22,
    "b": 139
  },
  "hsl": {
    "h": 243.077,
    "s": 72.671,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31826,
    "c": 0.17954,
    "h": 271.8
  },
  "luminance": 0.02685
}

Semantic roles & 50–950 ramp

primary
#1C168B
secondary
#B8BF3E
accent
#EF38E6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #1C168B

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

Preview Lab → · Contrast checker → · Palette generator →

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