#1C126D#1C126D

#1C126D is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.7% C 0.146 H 276.0°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#1C126D
RGBrgb(28, 18, 109)
HSLhsl(247, 72%, 25%)
HSVhsv(247, 83%, 43%)
CMYKcmyk(74.3%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.31, 34.99, -50.18)
CIE-LCHlch(14.31, 61.18, 304.89°)
OKLaboklab(27.67% 0.0152 -0.1451)
OKLCHoklch(27.67% 0.146 276)
XYZxyz(3.4546, 1.7833, 14.6272)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C126D #636D12
analogous
#12366D #1C126D #49126D
triadic
#1C126D #6D1C12 #126D1C
tetradic
#1C126D #6D1236 #636D12 #126D49
square
#1C126D #6D1236 #636D12 #126D49
split-complementary
#1C126D #6D4912 #366D12
monochromatic
#07041A #0F0938 #1C126D #291BA2 #3723D6

Accessibility & contrast

On white

15.48
#1C126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#1C126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C126D
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C126D#FFFFFF#000000##FFFFFF
##1C126D1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002870
Deuteranopia (green-blind)
#00206B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1c126d;
/* rgb */ color: rgb(28, 18, 109);
/* oklch */ color: oklch(27.7% 0.146 276.0);
Tailwind
colors: {
  custom: {
    50: '#675398',
    500: '#1c126d',
    950: '#000000',
  },
}
SCSS
$custom: #1c126d;
$custom-light: #675398;
$custom-dark: #000000;
JSON
{
  "hex": "#1c126d",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 246.593,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27674,
    "c": 0.14585,
    "h": 276
  },
  "luminance": 0.01784
}

Semantic roles & 50–950 ramp

primary
#1C126D
secondary
#98A437
accent
#EE39DB
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1C126D

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

Preview Lab → · Contrast checker → · Palette generator →

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