#1A2147#1A2147

#1A2147 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.071 H 272.8°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#1A2147
RGBrgb(26, 33, 71)
HSLhsl(231, 46%, 19%)
HSVhsv(231, 63%, 28%)
CMYKcmyk(63.4%, 53.5%, 0%, 72.2%)
CIE-LABlab(14.19, 10.34, -24.85)
CIE-LCHlch(14.19, 26.92, 292.59°)
OKLaboklab(26.41% 0.0034 -0.0709)
OKLCHoklch(26.41% 0.071 272.8)
XYZxyz(2.1068, 1.7621, 6.1891)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1A2147 #47401A
analogous
#1A3847 #1A2147 #2A1A47
triadic
#1A2147 #471A21 #21471A
tetradic
#1A2147 #471A38 #47401A #1A472A
square
#1A2147 #471A38 #47401A #1A472A
split-complementary
#1A2147 #472A1A #38471A
monochromatic
#080A16 #0A0C1A #1A2147 #2A3674 #3B4BA1

Accessibility & contrast

On white

15.53
#1A2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1A2147
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1A2147#FFFFFF#000000##FFFFFF
##1A21471.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2648
Deuteranopia (green-blind)
#082246
Tritanopia (blue-blind)
#022930
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #1a2147;
/* rgb */ color: rgb(26, 33, 71);
/* oklch */ color: oklch(26.4% 0.071 272.8);
Tailwind
colors: {
  custom: {
    50: '#5b5b7a',
    500: '#1a2147',
    950: '#000000',
  },
}
SCSS
$custom: #1a2147;
$custom-light: #5b5b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1a2147",
  "rgb": {
    "r": 26,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 230.667,
    "s": 46.392,
    "l": 19.02
  },
  "oklch": {
    "l": 0.26411,
    "c": 0.07101,
    "h": 272.8
  },
  "luminance": 0.01762
}

Semantic roles & 50–950 ramp

primary
#1A2147
secondary
#7D7440
accent
#C152D6
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #1A2147

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

Preview Lab → · Contrast checker → · Palette generator →

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