#1C4797#1C4797

#1C4797 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.7% C 0.140 H 261.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#1C4797
RGBrgb(28, 71, 151)
HSLhsl(219, 69%, 35%)
HSVhsv(219, 81%, 59%)
CMYKcmyk(81.5%, 53%, 0%, 40.8%)
CIE-LABlab(31.78, 16.04, -48.03)
CIE-LCHlch(31.78, 50.64, 288.46°)
OKLaboklab(41.73% -0.0209 -0.1384)
OKLCHoklch(41.73% 0.14 261.4)
XYZxyz(8.3160, 6.9867, 30.1824)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C4797 #976C1C
analogous
#1C8597 #1C4797 #2E1C97
triadic
#1C4797 #971C47 #47971C
tetradic
#1C4797 #971C85 #976C1C #1C972E
square
#1C4797 #971C85 #976C1C #1C972E
split-complementary
#1C4797 #972E1C #85971C
monochromatic
#091630 #122F63 #1C4797 #265FCB #4F81DE

Accessibility & contrast

On white

8.76
#1C4797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#1C4797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C4797
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C4797#FFFFFF#000000##FFFFFF
##1C47971.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F519A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1c4797;
/* rgb */ color: rgb(28, 71, 151);
/* oklch */ color: oklch(41.7% 0.140 261.4);
Tailwind
colors: {
  custom: {
    50: '#6d79b6',
    500: '#1c4797',
    950: '#000000',
  },
}
SCSS
$custom: #1c4797;
$custom-light: #6d79b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1c4797",
  "rgb": {
    "r": 28,
    "g": 71,
    "b": 151
  },
  "hsl": {
    "h": 219.024,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.41729,
    "c": 0.13996,
    "h": 261.4
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

primary
#1C4797
secondary
#C1994E
accent
#AE3CEC
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1C4797

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

Preview Lab → · Contrast checker → · Palette generator →

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