#1C1796#1C1796

#1C1796 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.192 H 270.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#1C1796
RGBrgb(28, 23, 150)
HSLhsl(242, 73%, 34%)
HSVhsv(242, 85%, 59%)
CMYKcmyk(81.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.29, 45.82, -66.28)
CIE-LCHlch(20.29, 80.57, 304.66°)
OKLaboklab(33.3% 0.0027 -0.1918)
OKLCHoklch(33.3% 0.192 270.8)
XYZxyz(6.2884, 3.0610, 29.1076)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1796 #919617
analogous
#175296 #1C1796 #5C1796
triadic
#1C1796 #961C17 #17961C
tetradic
#1C1796 #961752 #919617 #17965C
square
#1C1796 #961752 #919617 #17965C
split-complementary
#1C1796 #965C17 #529617
monochromatic
#08072C #120F61 #1C1796 #261FCB #4B45E2

Accessibility & contrast

On white

13.02
#1C1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1C1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C1796
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1796#FFFFFF#000000##FFFFFF
##1C17961.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002A94
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1c1796;
/* rgb */ color: rgb(28, 23, 150);
/* oklch */ color: oklch(33.3% 0.192 270.8);
Tailwind
colors: {
  custom: {
    50: '#7158b6',
    500: '#1c1796',
    950: '#000000',
  },
}
SCSS
$custom: #1c1796;
$custom-light: #7158b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1796",
  "rgb": {
    "r": 28,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 242.362,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.333,
    "c": 0.19182,
    "h": 270.8
  },
  "luminance": 0.03062
}

Semantic roles & 50–950 ramp

primary
#1C1796
secondary
#BEC345
accent
#F038E9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1C1796

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

Preview Lab → · Contrast checker → · Palette generator →

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