#1A128C#1A128C

#1A128C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.4% C 0.184 H 271.2°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#1A128C
RGBrgb(26, 18, 140)
HSLhsl(244, 77%, 31%)
HSVhsv(244, 87%, 55%)
CMYKcmyk(81.4%, 87.1%, 0%, 45.1%)
CIE-LABlab(18.12, 44.84, -63.66)
CIE-LCHlch(18.12, 77.86, 305.16°)
OKLaboklab(31.41% 0.0038 -0.1842)
OKLCHoklch(31.41% 0.184 271.2)
XYZxyz(5.3743, 2.5451, 25.0139)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A128C #848C12
analogous
#12478C #1A128C #57128C
triadic
#1A128C #8C1A12 #128C1A
tetradic
#1A128C #8C1247 #848C12 #128C57
square
#1A128C #8C1247 #848C12 #128C57
split-complementary
#1A128C #8C5712 #478C12
monochromatic
#060420 #100B56 #1A128C #2419C2 #3F34E5

Accessibility & contrast

On white

13.91
#1A128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1A128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A128C
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A128C#FFFFFF#000000##FFFFFF
##1A128C1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00268A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a128c;
/* rgb */ color: rgb(26, 18, 140);
/* oklch */ color: oklch(31.4% 0.184 271.2);
Tailwind
colors: {
  custom: {
    50: '#6e55af',
    500: '#1a128c',
    950: '#000000',
  },
}
SCSS
$custom: #1a128c;
$custom-light: #6e55af;
$custom-dark: #000000;
JSON
{
  "hex": "#1a128c",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 243.934,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.1842,
    "h": 271.2
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#1A128C
secondary
#B8C039
accent
#F434E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A128C

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

Preview Lab → · Contrast checker → · Palette generator →

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