#1A118D#1A118D

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

Color values

HEX#1A118D
RGBrgb(26, 17, 141)
HSLhsl(244, 78%, 31%)
HSVhsv(244, 88%, 55%)
CMYKcmyk(81.6%, 87.9%, 0%, 44.7%)
CIE-LABlab(18.11, 45.57, -64.30)
CIE-LCHlch(18.11, 78.81, 305.32°)
OKLaboklab(31.44% 0.0037 -0.186)
OKLCHoklch(31.44% 0.186 271.2)
XYZxyz(5.4325, 2.5430, 25.3987)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A118D #848D11
analogous
#11468D #1A118D #58118D
triadic
#1A118D #8D1A11 #118D1A
tetradic
#1A118D #8D1146 #848D11 #118D58
square
#1A118D #8D1146 #848D11 #118D58
split-complementary
#1A118D #8D5811 #468D11
monochromatic
#060420 #100A56 #1A118D #2418C4 #3F32E6

Accessibility & contrast

On white

13.92
#1A118D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A118D
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A118D#FFFFFF#000000##FFFFFF
##1A118D1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003290
Deuteranopia (green-blind)
#00268B
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1a118d;
/* rgb */ color: rgb(26, 17, 141);
/* oklch */ color: oklch(31.4% 0.186 271.2);
Tailwind
colors: {
  custom: {
    50: '#6f55b0',
    500: '#1a118d',
    950: '#000000',
  },
}
SCSS
$custom: #1a118d;
$custom-light: #6f55b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a118d",
  "rgb": {
    "r": 26,
    "g": 17,
    "b": 141
  },
  "hsl": {
    "h": 244.355,
    "s": 78.481,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31441,
    "c": 0.18603,
    "h": 271.2
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#1A118D
secondary
#B8C238
accent
#F533E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A118D

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

Preview Lab → · Contrast checker → · Palette generator →

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