#1A118E#1A118E

#1A118E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.187 H 271.1°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#1A118E
RGBrgb(26, 17, 142)
HSLhsl(244, 79%, 31%)
HSVhsv(244, 88%, 56%)
CMYKcmyk(81.7%, 88%, 0%, 44.3%)
CIE-LABlab(18.25, 45.87, -64.71)
CIE-LCHlch(18.25, 79.32, 305.33°)
OKLaboklab(31.57% 0.0035 -0.1872)
OKLCHoklch(31.57% 0.187 271.1)
XYZxyz(5.5073, 2.5729, 25.7923)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A118E #858E11
analogous
#11468E #1A118E #58118E
triadic
#1A118E #8E1A11 #118E1A
tetradic
#1A118E #8E1146 #858E11 #118E58
square
#1A118E #8E1146 #858E11 #118E58
split-complementary
#1A118E #8E5811 #468E11
monochromatic
#060421 #100A57 #1A118E #2418C5 #4033E7

Accessibility & contrast

On white

13.86
#1A118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A118E
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A118E#FFFFFF#000000##FFFFFF
##1A118E1.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003291
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a118e;
/* rgb */ color: rgb(26, 17, 142);
/* oklch */ color: oklch(31.6% 0.187 271.1);
Tailwind
colors: {
  custom: {
    50: '#6f55b0',
    500: '#1a118e',
    950: '#000000',
  },
}
SCSS
$custom: #1a118e;
$custom-light: #6f55b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a118e",
  "rgb": {
    "r": 26,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 244.32,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31569,
    "c": 0.18719,
    "h": 271.1
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1A118E

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

Preview Lab → · Contrast checker → · Palette generator →

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