#1A2156#1A2156

#1A2156 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.096 H 272.8°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#1A2156
RGBrgb(26, 33, 86)
HSLhsl(233, 54%, 22%)
HSVhsv(233, 70%, 34%)
CMYKcmyk(69.8%, 61.6%, 0%, 66.3%)
CIE-LABlab(15.38, 16.35, -33.17)
CIE-LCHlch(15.38, 36.98, 296.24°)
OKLaboklab(27.69% 0.0047 -0.0954)
OKLCHoklch(27.69% 0.096 272.8)
XYZxyz(2.6490, 1.9790, 9.0447)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2156 #564F1A
analogous
#1A3F56 #1A2156 #311A56
triadic
#1A2156 #561A21 #21561A
tetradic
#1A2156 #561A3F #564F1A #1A5631
square
#1A2156 #561A3F #564F1A #1A5631
split-complementary
#1A2156 #56311A #3F561A
monochromatic
#070917 #0C0F27 #1A2156 #283385 #3645B4

Accessibility & contrast

On white

15.05
#1A2156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1A2156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2156
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2156#FFFFFF#000000##FFFFFF
##1A21561.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1a2156;
/* rgb */ color: rgb(26, 33, 86);
/* oklch */ color: oklch(27.7% 0.096 272.8);
Tailwind
colors: {
  custom: {
    50: '#5f5c86',
    500: '#1a2156',
    950: '#000000',
  },
}
SCSS
$custom: #1a2156;
$custom-light: #5f5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2156",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 86
  },
  "hsl": {
    "h": 233,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27687,
    "c": 0.0955,
    "h": 272.8
  },
  "luminance": 0.01979
}

Semantic roles & 50–950 ramp

primary
#1A2156
secondary
#8C8340
accent
#CC4BDD
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1A2156

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

Preview Lab → · Contrast checker → · Palette generator →

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