#1C127C#1C127C

#1C127C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.165 H 273.8°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#1C127C
RGBrgb(28, 18, 124)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 85%, 49%)
CMYKcmyk(77.4%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.18, 39.91, -56.77)
CIE-LCHlch(16.18, 69.39, 305.11°)
OKLaboklab(29.51% 0.0109 -0.1642)
OKLCHoklch(29.51% 0.165 273.8)
XYZxyz(4.3321, 2.1343, 19.2485)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C127C #727C12
analogous
#123D7C #1C127C #51127C
triadic
#1C127C #7C1C12 #127C1C
tetradic
#1C127C #7C123D #727C12 #127C51
square
#1C127C #7C123D #727C12 #127C51
split-complementary
#1C127C #7C5112 #3D7C12
monochromatic
#06041B #100A47 #1C127C #281AB1 #3A29E0

Accessibility & contrast

On white

14.72
#1C127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1C127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C127C
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C127C#FFFFFF#000000##FFFFFF
##1C127C1.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00237A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1c127c;
/* rgb */ color: rgb(28, 18, 124);
/* oklch */ color: oklch(29.5% 0.165 273.8);
Tailwind
colors: {
  custom: {
    50: '#6b54a3',
    500: '#1c127c',
    950: '#000000',
  },
}
SCSS
$custom: #1c127c;
$custom-light: #6b54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1c127c",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 245.66,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29513,
    "c": 0.16454,
    "h": 273.8
  },
  "luminance": 0.02135
}

Semantic roles & 50–950 ramp

primary
#1C127C
secondary
#A6B238
accent
#F137E0
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1C127C

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

Preview Lab → · Contrast checker → · Palette generator →

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