#1C1271#1C1271

#1C1271 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.2% C 0.151 H 275.3°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#1C1271
RGBrgb(28, 18, 113)
HSLhsl(246, 73%, 26%)
HSVhsv(246, 84%, 44%)
CMYKcmyk(75.2%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.80, 36.33, -51.97)
CIE-LCHlch(14.80, 63.41, 304.95°)
OKLaboklab(28.16% 0.014 -0.1503)
OKLCHoklch(28.16% 0.151 275.3)
XYZxyz(3.6749, 1.8714, 15.7871)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C1271 #677112
analogous
#123771 #1C1271 #4B1271
triadic
#1C1271 #711C12 #12711C
tetradic
#1C1271 #711237 #677112 #12714B
square
#1C1271 #711237 #677112 #12714B
split-complementary
#1C1271 #714B12 #377112
monochromatic
#07041A #0F0A3C #1C1271 #291AA6 #3623DB

Accessibility & contrast

On white

15.28
#1C1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1C1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C1271
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C1271#FFFFFF#000000##FFFFFF
##1C12711.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1c1271;
/* rgb */ color: rgb(28, 18, 113);
/* oklch */ color: oklch(28.2% 0.151 275.3);
Tailwind
colors: {
  custom: {
    50: '#68539b',
    500: '#1c1271',
    950: '#000000',
  },
}
SCSS
$custom: #1c1271;
$custom-light: #68539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1c1271",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 246.316,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28158,
    "c": 0.15091,
    "h": 275.3
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#1C1271
secondary
#9CA837
accent
#EF39DC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1C1271

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

Preview Lab → · Contrast checker → · Palette generator →

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