#1C126C#1C126C

#1C126C is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.145 H 276.1°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#1C126C
RGBrgb(28, 18, 108)
HSLhsl(247, 71%, 25%)
HSVhsv(247, 83%, 42%)
CMYKcmyk(74.1%, 83.3%, 0%, 57.6%)
CIE-LABlab(14.18, 34.66, -49.73)
CIE-LCHlch(14.18, 60.61, 304.88°)
OKLaboklab(27.55% 0.0155 -0.1437)
OKLCHoklch(27.55% 0.145 276.1)
XYZxyz(3.4011, 1.7619, 14.3453)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C126C #626C12
analogous
#12356C #1C126C #49126C
triadic
#1C126C #6C1C12 #126C1C
tetradic
#1C126C #6C1235 #626C12 #126C49
square
#1C126C #6C1235 #626C12 #126C49
split-complementary
#1C126C #6C4912 #356C12
monochromatic
#07041A #0E0938 #1C126C #2A1BA0 #3723D5

Accessibility & contrast

On white

15.53
#1C126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1C126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C126C
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C126C#FFFFFF#000000##FFFFFF
##1C126C1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1c126c;
/* rgb */ color: rgb(28, 18, 108);
/* oklch */ color: oklch(27.6% 0.145 276.1);
Tailwind
colors: {
  custom: {
    50: '#675297',
    500: '#1c126c',
    950: '#000000',
  },
}
SCSS
$custom: #1c126c;
$custom-light: #675297;
$custom-dark: #000000;
JSON
{
  "hex": "#1c126c",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 246.667,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27553,
    "c": 0.14457,
    "h": 276.1
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#1C126C
secondary
#97A336
accent
#EE3ADA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1C126C

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

Preview Lab → · Contrast checker → · Palette generator →

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