#1C2797#1C2797

#1C2797 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.179 H 269.3°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#1C2797
RGBrgb(28, 39, 151)
HSLhsl(235, 69%, 35%)
HSVhsv(235, 81%, 59%)
CMYKcmyk(81.5%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.44, 37.43, -61.66)
CIE-LCHlch(23.44, 72.13, 301.26°)
OKLaboklab(35.56% -0.0022 -0.1786)
OKLCHoklch(35.56% 0.179 269.3)
XYZxyz(6.7884, 3.9315, 29.6732)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C2797 #978C1C
analogous
#1C6597 #1C2797 #4E1C97
triadic
#1C2797 #971C27 #27971C
tetradic
#1C2797 #971C65 #978C1C #1C974E
square
#1C2797 #971C65 #978C1C #1C974E
split-complementary
#1C2797 #974E1C #65971C
monochromatic
#090C30 #121A63 #1C2797 #2634CB #4F5CDE

Accessibility & contrast

On white

11.76
#1C2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1C2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C2797
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C2797#FFFFFF#000000##FFFFFF
##1C27971.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1c2797;
/* rgb */ color: rgb(28, 39, 151);
/* oklch */ color: oklch(35.6% 0.179 269.3);
Tailwind
colors: {
  custom: {
    50: '#7062b7',
    500: '#1c2797',
    950: '#000000',
  },
}
SCSS
$custom: #1c2797;
$custom-light: #7062b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1c2797",
  "rgb": {
    "r": 28,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 234.634,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35555,
    "c": 0.17865,
    "h": 269.3
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#1C2797
secondary
#C1B74E
accent
#DC3CEC
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1C2797

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

Preview Lab → · Contrast checker → · Palette generator →

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