#1C127F#1C127F

#1C127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.168 H 273.4°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#1C127F
RGBrgb(28, 18, 127)
HSLhsl(246, 75%, 28%)
HSVhsv(246, 86%, 50%)
CMYKcmyk(78%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.56, 40.87, -58.05)
CIE-LCHlch(16.56, 70.99, 305.15°)
OKLaboklab(29.89% 0.01 -0.1679)
OKLCHoklch(29.89% 0.168 273.4)
XYZxyz(4.5247, 2.2113, 20.2629)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C127F #757F12
analogous
#123E7F #1C127F #52127F
triadic
#1C127F #7F1C12 #127F1C
tetradic
#1C127F #7F123E #757F12 #127F52
square
#1C127F #7F123E #757F12 #127F52
split-complementary
#1C127F #7F5212 #3E7F12
monochromatic
#06041B #100A49 #1C127F #281AB5 #3B2BE1

Accessibility & contrast

On white

14.56
#1C127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1C127F
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C127F#FFFFFF#000000##FFFFFF
##1C127F1.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1c127f;
/* rgb */ color: rgb(28, 18, 127);
/* oklch */ color: oklch(29.9% 0.168 273.4);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1c127f',
    950: '#000000',
  },
}
SCSS
$custom: #1c127f;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1c127f",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 245.505,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29887,
    "c": 0.16819,
    "h": 273.4
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#1C127F
secondary
#A9B538
accent
#F236E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1C127F

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

Preview Lab → · Contrast checker → · Palette generator →

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