#1C42B4#1C42B4

#1C42B4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.185 H 265.0°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#1C42B4
RGBrgb(28, 66, 180)
HSLhsl(225, 73%, 41%)
HSVhsv(225, 84%, 71%)
CMYKcmyk(84.4%, 63.3%, 0%, 29.4%)
CIE-LABlab(32.78, 30.87, -63.81)
CIE-LCHlch(32.78, 70.88, 295.82°)
OKLaboklab(43.22% -0.0162 -0.1848)
OKLCHoklch(43.22% 0.185 265)
XYZxyz(10.6624, 7.4373, 44.0447)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C42B4 #B48E1C
analogous
#1C8EB4 #1C42B4 #421CB4
triadic
#1C42B4 #B41C42 #42B41C
tetradic
#1C42B4 #B41C8E #B48E1C #1CB442
square
#1C42B4 #B41C8E #B48E1C #1CB442
split-complementary
#1C42B4 #B4421C #8EB41C
monochromatic
#0C1B4A #142F7F #1C42B4 #2F5BDF #6484E7

Accessibility & contrast

On white

8.44
#1C42B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#1C42B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C42B4
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C42B4#FFFFFF#000000##FFFFFF
##1C42B41.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1c42b4;
/* rgb */ color: rgb(28, 66, 180);
/* oklch */ color: oklch(43.2% 0.185 265.0);
Tailwind
colors: {
  custom: {
    50: '#7576cb',
    500: '#1c42b4',
    950: '#000000',
  },
}
SCSS
$custom: #1c42b4;
$custom-light: #7576cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1c42b4",
  "rgb": {
    "r": 28,
    "g": 66,
    "b": 180
  },
  "hsl": {
    "h": 225,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43223,
    "c": 0.18549,
    "h": 265
  },
  "luminance": 0.07439
}

Semantic roles & 50–950 ramp

primary
#1C42B4
secondary
#CCB160
accent
#C238F0
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1C42B4

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

Preview Lab → · Contrast checker → · Palette generator →

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