#1A2162#1A2162

#1A2162 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.8% C 0.114 H 272.3°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#1A2162
RGBrgb(26, 33, 98)
HSLhsl(234, 58%, 24%)
HSVhsv(234, 73%, 38%)
CMYKcmyk(73.5%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.45, 21.14, -39.43)
CIE-LCHlch(16.45, 44.74, 298.20°)
OKLaboklab(28.82% 0.0046 -0.1138)
OKLCHoklch(28.82% 0.114 272.3)
XYZxyz(3.1737, 2.1889, 11.8081)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2162 #625B1A
analogous
#1A4562 #1A2162 #371A62
triadic
#1A2162 #621A21 #21621A
tetradic
#1A2162 #621A45 #625B1A #1A6237
square
#1A2162 #621A45 #625B1A #1A6237
split-complementary
#1A2162 #62371A #45621A
monochromatic
#060818 #0D1132 #1A2162 #273192 #3442C3

Accessibility & contrast

On white

14.61
#1A2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#1A2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1A2162
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2162#FFFFFF#000000##FFFFFF
##1A21621.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1a2162;
/* rgb */ color: rgb(26, 33, 98);
/* oklch */ color: oklch(28.8% 0.114 272.3);
Tailwind
colors: {
  custom: {
    50: '#625c8f',
    500: '#1a2162',
    950: '#000000',
  },
}
SCSS
$custom: #1a2162;
$custom-light: #625c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2162",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 234.167,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28816,
    "c": 0.11387,
    "h": 272.3
  },
  "luminance": 0.02189
}

Semantic roles & 50–950 ramp

primary
#1A2162
secondary
#988F40
accent
#D247E1
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #1A2162

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

Preview Lab → · Contrast checker → · Palette generator →

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