#1C128E#1C128E

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

Color values

HEX#1C128E
RGBrgb(28, 18, 142)
HSLhsl(245, 78%, 31%)
HSVhsv(245, 87%, 56%)
CMYKcmyk(80.3%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.50, 45.55, -64.27)
CIE-LCHlch(18.50, 78.78, 305.33°)
OKLaboklab(31.78% 0.0058 -0.1859)
OKLCHoklch(31.78% 0.186 271.8)
XYZxyz(5.5760, 2.6319, 25.8001)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C128E #848E12
analogous
#12468E #1C128E #5A128E
triadic
#1C128E #8E1C12 #128E1C
tetradic
#1C128E #8E1246 #848E12 #128E5A
square
#1C128E #8E1246 #848E12 #128E5A
split-complementary
#1C128E #8E5A12 #468E12
monochromatic
#070421 #110B58 #1C128E #2719C4 #4335E5

Accessibility & contrast

On white

13.76
#1C128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1C128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C128E
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C128E#FFFFFF#000000##FFFFFF
##1C128E1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1c128e;
/* rgb */ color: rgb(28, 18, 142);
/* oklch */ color: oklch(31.8% 0.186 271.8);
Tailwind
colors: {
  custom: {
    50: '#7055b0',
    500: '#1c128e',
    950: '#000000',
  },
}
SCSS
$custom: #1c128e;
$custom-light: #7055b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1c128e",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 244.839,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3178,
    "c": 0.18598,
    "h": 271.8
  },
  "luminance": 0.02632
}

Semantic roles & 50–950 ramp

primary
#1C128E
secondary
#B7C23A
accent
#F434E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1C128E

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

Preview Lab → · Contrast checker → · Palette generator →

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