#1A138C#1A138C

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

Color values

HEX#1A138C
RGBrgb(26, 19, 140)
HSLhsl(243, 76%, 31%)
HSVhsv(243, 86%, 55%)
CMYKcmyk(81.4%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.27, 44.40, -63.42)
CIE-LCHlch(18.27, 77.41, 305.00°)
OKLaboklab(31.51% 0.0036 -0.1835)
OKLCHoklch(31.51% 0.184 271.1)
XYZxyz(5.3909, 2.5782, 25.0194)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A138C #858C13
analogous
#13488C #1A138C #56138C
triadic
#1A138C #8C1A13 #138C1A
tetradic
#1A138C #8C1348 #858C13 #138C56
square
#1A138C #8C1348 #858C13 #138C56
split-complementary
#1A138C #8C5613 #488C13
monochromatic
#060420 #100C56 #1A138C #241AC2 #4036E4

Accessibility & contrast

On white

13.85
#1A138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1A138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A138C
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A138C#FFFFFF#000000##FFFFFF
##1A138C1.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1a138c;
/* rgb */ color: rgb(26, 19, 140);
/* oklch */ color: oklch(31.5% 0.184 271.1);
Tailwind
colors: {
  custom: {
    50: '#6e56af',
    500: '#1a138c',
    950: '#000000',
  },
}
SCSS
$custom: #1a138c;
$custom-light: #6e56af;
$custom-dark: #000000;
JSON
{
  "hex": "#1a138c",
  "rgb": {
    "r": 26,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 243.471,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31511,
    "c": 0.18352,
    "h": 271.1
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#1A138C
secondary
#B8C03B
accent
#F335E8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #1A138C

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

Preview Lab → · Contrast checker → · Palette generator →

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