#1C127A#1C127A

#1C127A is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.162 H 274.0°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#1C127A
RGBrgb(28, 18, 122)
HSLhsl(246, 74%, 27%)
HSVhsv(246, 85%, 48%)
CMYKcmyk(77%, 85.2%, 0%, 52.2%)
CIE-LABlab(15.92, 39.27, -55.91)
CIE-LCHlch(15.92, 68.32, 305.08°)
OKLaboklab(29.27% 0.0114 -0.1617)
OKLCHoklch(29.27% 0.162 274)
XYZxyz(4.2069, 2.0842, 18.5892)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C127A #707A12
analogous
#123C7A #1C127A #50127A
triadic
#1C127A #7A1C12 #127A1C
tetradic
#1C127A #7A123C #707A12 #127A50
square
#1C127A #7A123C #707A12 #127A50
split-complementary
#1C127A #7A5012 #3C7A12
monochromatic
#06041B #100A45 #1C127A #281AAF #3927DF

Accessibility & contrast

On white

14.82
#1C127A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#1C127A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C127A
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C127A#FFFFFF#000000##FFFFFF
##1C127A1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7D
Deuteranopia (green-blind)
#002378
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1c127a;
/* rgb */ color: rgb(28, 18, 122);
/* oklch */ color: oklch(29.3% 0.162 274.0);
Tailwind
colors: {
  custom: {
    50: '#6a54a2',
    500: '#1c127a',
    950: '#000000',
  },
}
SCSS
$custom: #1c127a;
$custom-light: #6a54a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1c127a",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 122
  },
  "hsl": {
    "h": 245.769,
    "s": 74.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29265,
    "c": 0.16209,
    "h": 274
  },
  "luminance": 0.02085
}

Semantic roles & 50–950 ramp

primary
#1C127A
secondary
#A5B038
accent
#F137DF
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1C127A

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

Preview Lab → · Contrast checker → · Palette generator →

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