#1A118C#1A118C

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

Color values

HEX#1A118C
RGBrgb(26, 17, 140)
HSLhsl(244, 78%, 31%)
HSVhsv(244, 88%, 55%)
CMYKcmyk(81.4%, 87.9%, 0%, 45.1%)
CIE-LABlab(17.98, 45.26, -63.90)
CIE-LCHlch(17.98, 78.30, 305.31°)
OKLaboklab(31.31% 0.004 -0.1848)
OKLCHoklch(31.31% 0.185 271.2)
XYZxyz(5.3585, 2.5134, 25.0086)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A118C #838C11
analogous
#11458C #1A118C #57118C
triadic
#1A118C #8C1A11 #118C1A
tetradic
#1A118C #8C1145 #838C11 #118C57
square
#1A118C #8C1145 #838C11 #118C57
split-complementary
#1A118C #8C5711 #458C11
monochromatic
#06041F #100A55 #1A118C #2418C3 #3F31E6

Accessibility & contrast

On white

13.97
#1A118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#1A118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A118C
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A118C#FFFFFF#000000##FFFFFF
##1A118C1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.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: #1a118c;
/* rgb */ color: rgb(26, 17, 140);
/* oklch */ color: oklch(31.3% 0.185 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f55af',
    500: '#1a118c',
    950: '#000000',
  },
}
SCSS
$custom: #1a118c;
$custom-light: #6f55af;
$custom-dark: #000000;
JSON
{
  "hex": "#1a118c",
  "rgb": {
    "r": 26,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 244.39,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31312,
    "c": 0.18487,
    "h": 271.2
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#1A118C
secondary
#B7C138
accent
#F533E7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A118C

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

Preview Lab → · Contrast checker → · Palette generator →

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