#1C127D#1C127D

#1C127D is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.6% C 0.166 H 273.7°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#1C127D
RGBrgb(28, 18, 125)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 86%, 49%)
CMYKcmyk(77.6%, 85.6%, 0%, 51%)
CIE-LABlab(16.30, 40.23, -57.20)
CIE-LCHlch(16.30, 69.93, 305.12°)
OKLaboklab(29.64% 0.0106 -0.1654)
OKLCHoklch(29.64% 0.166 273.7)
XYZxyz(4.3956, 2.1597, 19.5833)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C127D #737D12
analogous
#123E7D #1C127D #51127D
triadic
#1C127D #7D1C12 #127D1C
tetradic
#1C127D #7D123E #737D12 #127D51
square
#1C127D #7D123E #737D12 #127D51
split-complementary
#1C127D #7D5112 #3E7D12
monochromatic
#06041B #100A48 #1C127D #281AB2 #3A29E0

Accessibility & contrast

On white

14.66
#1C127D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C127D
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C127D#FFFFFF#000000##FFFFFF
##1C127D1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D80
Deuteranopia (green-blind)
#00237B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1c127d;
/* rgb */ color: rgb(28, 18, 125);
/* oklch */ color: oklch(29.6% 0.166 273.7);
Tailwind
colors: {
  custom: {
    50: '#6b54a4',
    500: '#1c127d',
    950: '#000000',
  },
}
SCSS
$custom: #1c127d;
$custom-light: #6b54a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1c127d",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 245.607,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29638,
    "c": 0.16576,
    "h": 273.7
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#1C127D
secondary
#A7B338
accent
#F136E0
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1C127D

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

Preview Lab → · Contrast checker → · Palette generator →

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