#1C128F#1C128F

#1C128F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.187 H 271.7°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1C128F
RGBrgb(28, 18, 143)
HSLhsl(245, 78%, 32%)
HSVhsv(245, 87%, 56%)
CMYKcmyk(80.4%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.64, 45.86, -64.68)
CIE-LCHlch(18.64, 79.29, 305.34°)
OKLaboklab(31.91% 0.0055 -0.1871)
OKLCHoklch(31.91% 0.187 271.7)
XYZxyz(5.6515, 2.6620, 26.1972)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1C128F #858F12
analogous
#12478F #1C128F #5B128F
triadic
#1C128F #8F1C12 #128F1C
tetradic
#1C128F #8F1247 #858F12 #128F5B
square
#1C128F #8F1247 #858F12 #128F5B
split-complementary
#1C128F #8F5B12 #478F12
monochromatic
#070422 #110B59 #1C128F #2719C5 #4436E6

Accessibility & contrast

On white

13.70
#1C128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1C128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1C128F
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1C128F#FFFFFF#000000##FFFFFF
##1C128F1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1c128f;
/* rgb */ color: rgb(28, 18, 143);
/* oklch */ color: oklch(31.9% 0.187 271.7);
Tailwind
colors: {
  custom: {
    50: '#7055b1',
    500: '#1c128f',
    950: '#000000',
  },
}
SCSS
$custom: #1c128f;
$custom-light: #7055b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1c128f",
  "rgb": {
    "r": 28,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 244.8,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31907,
    "c": 0.18714,
    "h": 271.7
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#1C128F
secondary
#B8C33A
accent
#F434E5
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1C128F

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

Preview Lab → · Contrast checker → · Palette generator →

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