#1C126F#1C126F

#1C126F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.148 H 275.7°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#1C126F
RGBrgb(28, 18, 111)
HSLhsl(246, 72%, 25%)
HSVhsv(246, 84%, 44%)
CMYKcmyk(74.8%, 83.8%, 0%, 56.5%)
CIE-LABlab(14.55, 35.66, -51.08)
CIE-LCHlch(14.55, 62.30, 304.92°)
OKLaboklab(27.92% 0.0146 -0.1477)
OKLCHoklch(27.92% 0.148 275.7)
XYZxyz(3.5635, 1.8268, 15.2007)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C126F #656F12
analogous
#12366F #1C126F #4B126F
triadic
#1C126F #6F1C12 #126F1C
tetradic
#1C126F #6F1236 #656F12 #126F4B
square
#1C126F #6F1236 #656F12 #126F4B
split-complementary
#1C126F #6F4B12 #366F12
monochromatic
#07041A #0F093A #1C126F #291BA4 #3723D8

Accessibility & contrast

On white

15.38
#1C126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1C126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C126F
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C126F#FFFFFF#000000##FFFFFF
##1C126F1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00216D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1c126f;
/* rgb */ color: rgb(28, 18, 111);
/* oklch */ color: oklch(27.9% 0.148 275.7);
Tailwind
colors: {
  custom: {
    50: '#675399',
    500: '#1c126f',
    950: '#000000',
  },
}
SCSS
$custom: #1c126f;
$custom-light: #675399;
$custom-dark: #000000;
JSON
{
  "hex": "#1c126f",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 246.452,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27915,
    "c": 0.14839,
    "h": 275.7
  },
  "luminance": 0.01827
}

Semantic roles & 50–950 ramp

primary
#1C126F
secondary
#9AA637
accent
#EF39DB
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1C126F

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

Preview Lab → · Contrast checker → · Palette generator →

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