#1C127E#1C127E

#1C127E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.167 H 273.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1C127E
RGBrgb(28, 18, 126)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 86%, 49%)
CMYKcmyk(77.8%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.43, 40.55, -57.62)
CIE-LCHlch(16.43, 70.46, 305.13°)
OKLaboklab(29.76% 0.0103 -0.1666)
OKLCHoklch(29.76% 0.167 273.5)
XYZxyz(4.4598, 2.1854, 19.9214)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C127E #747E12
analogous
#123E7E #1C127E #52127E
triadic
#1C127E #7E1C12 #127E1C
tetradic
#1C127E #7E123E #747E12 #127E52
square
#1C127E #7E123E #747E12 #127E52
split-complementary
#1C127E #7E5212 #3E7E12
monochromatic
#06041B #100A48 #1C127E #281AB4 #3B2AE1

Accessibility & contrast

On white

14.61
#1C127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1C127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C127E
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C127E#FFFFFF#000000##FFFFFF
##1C127E1.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00237C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1c127e;
/* rgb */ color: rgb(28, 18, 126);
/* oklch */ color: oklch(29.8% 0.167 273.5);
Tailwind
colors: {
  custom: {
    50: '#6b54a5',
    500: '#1c127e',
    950: '#000000',
  },
}
SCSS
$custom: #1c127e;
$custom-light: #6b54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c127e",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 245.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29762,
    "c": 0.16697,
    "h": 273.5
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#1C127E
secondary
#A8B438
accent
#F236E0
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1C127E

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

Preview Lab → · Contrast checker → · Palette generator →

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