#1A138E#1A138E

#1A138E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.8% C 0.186 H 271.0°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#1A138E
RGBrgb(26, 19, 142)
HSLhsl(243, 76%, 32%)
HSVhsv(243, 87%, 56%)
CMYKcmyk(81.7%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.53, 45.02, -64.23)
CIE-LCHlch(18.53, 78.44, 305.03°)
OKLaboklab(31.77% 0.0031 -0.1858)
OKLCHoklch(31.77% 0.186 271)
XYZxyz(5.5397, 2.6377, 25.8031)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A138E #878E13
analogous
#134A8E #1A138E #58138E
triadic
#1A138E #8E1A13 #138E1A
tetradic
#1A138E #8E134A #878E13 #138E58
square
#1A138E #8E134A #878E13 #138E58
split-complementary
#1A138E #8E5813 #4A8E13
monochromatic
#060522 #100C58 #1A138E #241AC4 #4137E4

Accessibility & contrast

On white

13.75
#1A138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A138E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A138E#FFFFFF#000000##FFFFFF
##1A138E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1a138e;
/* rgb */ color: rgb(26, 19, 142);
/* oklch */ color: oklch(31.8% 0.186 271.0);
Tailwind
colors: {
  custom: {
    50: '#6f56b0',
    500: '#1a138e',
    950: '#000000',
  },
}
SCSS
$custom: #1a138e;
$custom-light: #6f56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1a138e",
  "rgb": {
    "r": 26,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 243.415,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31765,
    "c": 0.18586,
    "h": 271
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#1A138E
secondary
#BAC23B
accent
#F335E8
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A138E

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

Preview Lab → · Contrast checker → · Palette generator →

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