#1C3797#1C3797

#1C3797 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.4% C 0.160 H 266.4°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#1C3797
RGBrgb(28, 55, 151)
HSLhsl(227, 69%, 35%)
HSVhsv(227, 81%, 59%)
CMYKcmyk(81.5%, 63.6%, 0%, 40.8%)
CIE-LABlab(27.33, 27.00, -55.27)
CIE-LCHlch(27.33, 61.51, 296.04°)
OKLaboklab(38.39% -0.0101 -0.1599)
OKLCHoklch(38.39% 0.16 266.4)
XYZxyz(7.4290, 5.2127, 29.8868)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C3797 #977C1C
analogous
#1C7597 #1C3797 #3E1C97
triadic
#1C3797 #971C37 #37971C
tetradic
#1C3797 #971C75 #977C1C #1C973E
square
#1C3797 #971C75 #977C1C #1C973E
split-complementary
#1C3797 #973E1C #75971C
monochromatic
#091130 #122463 #1C3797 #264ACB #4F6EDE

Accessibility & contrast

On white

10.28
#1C3797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1C3797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C3797
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C3797#FFFFFF#000000##FFFFFF
##1C37971.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#003B95
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1c3797;
/* rgb */ color: rgb(28, 55, 151);
/* oklch */ color: oklch(38.4% 0.160 266.4);
Tailwind
colors: {
  custom: {
    50: '#6e6db6',
    500: '#1c3797',
    950: '#000000',
  },
}
SCSS
$custom: #1c3797;
$custom-light: #6e6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1c3797",
  "rgb": {
    "r": 28,
    "g": 55,
    "b": 151
  },
  "hsl": {
    "h": 226.829,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38388,
    "c": 0.16023,
    "h": 266.4
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#1C3797
secondary
#C1A84E
accent
#C53CEC
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1C3797

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

Preview Lab → · Contrast checker → · Palette generator →

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