#1C42A8#1C42A8

#1C42A8 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.1% C 0.170 H 264.5°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#1C42A8
RGBrgb(28, 66, 168)
HSLhsl(224, 71%, 38%)
HSVhsv(224, 83%, 66%)
CMYKcmyk(83.3%, 60.7%, 0%, 34.1%)
CIE-LABlab(31.74, 26.22, -58.36)
CIE-LCHlch(31.74, 63.98, 294.19°)
OKLaboklab(42.12% -0.0163 -0.1688)
OKLCHoklch(42.12% 0.17 264.5)
XYZxyz(9.4925, 6.9693, 37.8831)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C42A8 #A8821C
analogous
#1C88A8 #1C42A8 #3C1CA8
triadic
#1C42A8 #A81C42 #42A81C
tetradic
#1C42A8 #A81C88 #A8821C #1CA83C
square
#1C42A8 #A81C88 #A8821C #1CA83C
split-complementary
#1C42A8 #A83C1C #88A81C
monochromatic
#0B193F #132D74 #1C42A8 #2657DB #5B80E4

Accessibility & contrast

On white

8.77
#1C42A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1C42A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C42A8
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C42A8#FFFFFF#000000##FFFFFF
##1C42A81.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1c42a8;
/* rgb */ color: rgb(28, 66, 168);
/* oklch */ color: oklch(42.1% 0.170 264.5);
Tailwind
colors: {
  custom: {
    50: '#7275c3',
    500: '#1c42a8',
    950: '#000000',
  },
}
SCSS
$custom: #1c42a8;
$custom-light: #7275c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1c42a8",
  "rgb": {
    "r": 28,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 223.714,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42123,
    "c": 0.16962,
    "h": 264.5
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#1C42A8
secondary
#C7A958
accent
#BD3AEE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#090813
muted
#7B7B82

Preview Lab

Preview with #1C42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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