#1A126C#1A126C

#1A126C is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.4% C 0.145 H 275.0°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#1A126C
RGBrgb(26, 18, 108)
HSLhsl(245, 71%, 25%)
HSVhsv(245, 83%, 42%)
CMYKcmyk(75.9%, 83.3%, 0%, 57.6%)
CIE-LABlab(14.03, 34.48, -49.99)
CIE-LCHlch(14.03, 60.73, 304.59°)
OKLaboklab(27.4% 0.0125 -0.1446)
OKLCHoklch(27.4% 0.145 275)
XYZxyz(3.3482, 1.7346, 14.3428)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A126C #646C12
analogous
#12376C #1A126C #47126C
triadic
#1A126C #6C1A12 #126C1A
tetradic
#1A126C #6C1237 #646C12 #126C47
square
#1A126C #6C1237 #646C12 #126C47
split-complementary
#1A126C #6C4712 #376C12
monochromatic
#06041A #0D0938 #1A126C #271BA0 #3323D5

Accessibility & contrast

On white

15.59
#1A126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#1A126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A126C
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A126C#FFFFFF#000000##FFFFFF
##1A126C1.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286E
Deuteranopia (green-blind)
#00206A
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1a126c;
/* rgb */ color: rgb(26, 18, 108);
/* oklch */ color: oklch(27.4% 0.145 275.0);
Tailwind
colors: {
  custom: {
    50: '#665297',
    500: '#1a126c',
    950: '#000000',
  },
}
SCSS
$custom: #1a126c;
$custom-light: #665297;
$custom-dark: #000000;
JSON
{
  "hex": "#1a126c",
  "rgb": {
    "r": 26,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 245.333,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.27403,
    "c": 0.1451,
    "h": 275
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#1A126C
secondary
#9AA336
accent
#EE3ADE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1A126C

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

Preview Lab → · Contrast checker → · Palette generator →

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